Skip to content

Look for boundaries around bad words #15

@rviscomi

Description

@rviscomi

In GoogleChrome/web.dev#8373 (comment) the bot flagged "OCD" in the source text. However, the offending line is this:

thumbnail: image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/dUBhcdiLqE1OCDUV7ZYm.jpg

https://github.com/GoogleChrome/web.dev/blob/e3b960500b31b8b0f0d143e41ff133a022361e28/src/site/content/en/blog/godaddy/index.md?plain=1#L12

Consider checking for boundaries on either side of the bad words to avoid false positives, ie /\bOCD\b/.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions