Skip to content

explicitSlurRegexes identifies "faq" as a prohibited slur #4288

@mistydemeo

Description

@mistydemeo

Describe the bug

One of the regexes in explicitSlurRegexes incorrectly matches on the lowercase string faq. (It doesn't match the uppercase string FAQ.) This prevents creating a post with the hashtag #faq, among other similar problems.

Image

This was brought to my attention by this blog post, which isn't by me, but I noticed no one had opened an issue.

The regex in question is the third in the array, which appears to be intending to match a similar-sounding actual slur with a different last letter. Specifically, the character group consisting mostly of g and characters which visually resemble a g also contains a q and several characters which resemble qs.

To Reproduce

Steps to reproduce the behavior:

  1. Create a post containing a hashtag such as #faq

Expected behavior

Nothing is flagged.

Since "faq" is short for "frequently asked questions", and since Bluesky hashtags are by convention lowercase, many users would expect to be able to create a post with the hashtag #faq. (In fact, this was discovered by someone linking to a blog post which contained a list of frequently asked questions.)

Details

  • Operating system: N/A
  • Node version: N/A

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions