• intensely_human@lemm.ee
    link
    fedilink
    arrow-up
    5
    ·
    5 months ago
    slur_filter_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?)",
    
    • zalgotext
      link
      fedilink
      arrow-up
      5
      ·
      5 months ago

      Man, regex is really not the tool for the job here is it?

      • djsoren19@yiffit.net
        link
        fedilink
        arrow-up
        3
        ·
        5 months ago

        What? it looks fine to me, outside of the general difficulty of reading regex. I mean, it’s not meant to be readable, it’s meant to catch all the different spellings if what they want to filter and do so.

        • zalgotext
          link
          fedilink
          arrow-up
          2
          ·
          5 months ago

          outside of the general difficulty of reading regex

          That’s sorta my point, the complexity of regex isn’t really warranted where a simple blocklist would suffice