• GreenKnight23@lemmy.world
    link
    fedilink
    English
    arrow-up
    27
    arrow-down
    1
    ·
    edit-2
    23 hours ago

    dumbfucks are using regex improperly.

    they’re using /.*(trans).*/ instead of /\s{1,}(trans)[- (sexual|[fe]*male)]*\s{1,}/

    • Skydancer@pawb.social
      link
      fedilink
      English
      arrow-up
      3
      ·
      11 hours ago
      (partially) ftfy
      /\w{1,}(trans)(gender|sexual|(fe)?m
      ale)|masc(uline)?|(wo)?man|person)?\w{1,}/
      

      Spoiler is to prevent it from helping them, being dumbfucks who won’t be smart enoygh to open it.

    • ShaggySnacks@lemmy.myserv.one
      link
      fedilink
      English
      arrow-up
      47
      ·
      21 hours ago

      You are giving DOGE way too much credit for actual using code. DOGE most likely hit CRTL+F and typed in “Trans” and called it a day.

    • towerful@programming.dev
      link
      fedilink
      English
      arrow-up
      14
      ·
      21 hours ago

      You really think they know regex?
      They probably got grok to generate it and didn’t understand what it does

    • WompWomp@lemmy.cafe
      link
      fedilink
      English
      arrow-up
      8
      arrow-down
      1
      ·
      22 hours ago

      Big Balls followed the golden rule of “Move fast and break things” . Shit happens!! /s

      • Amon@lemmy.world
        link
        fedilink
        English
        arrow-up
        4
        ·
        21 hours ago

        Move fast and break things works well when you’re not breaking your own things