• qaz@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      3
      ·
      3 hours ago

      I think a regex to filter out common slurs isn’t really the same

      The regex:

      (fag(g|got|tard)?\b|cock\s?sucker(s|ing)?|ni((g{2,}|q)+|[gq]{2,})[e3r]+(s|z)?|mudslime?s?|kikes?|\bspi(c|k)s?\b|\bchinks?|gooks?|bitch(es|ing|y)?|whor(es?|ing)|\btr(a|@)nn?(y|ies?)|\b(b|re|r)tard(ed)?s?)
      

      Link to code

    • leMe@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      4
      ·
      6 hours ago

      thanks for pointing to that issue. i dont know how piefed devs reacted to this. so i will give them the benefit of the doubt: it could very well be a quick and dirty solution, never meant to last long.

      as the lemmy devs showed, it does not have to be like this at all. but i haven’t seen that much oppinionsted and defensive actions from the piefed devs.