• GreenKnight23@lemmy.world
    link
    fedilink
    English
    arrow-up
    26
    arrow-down
    1
    ·
    edit-2
    17 days ago

    dumbfucks are using regex improperly.

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

    • ShaggySnacks@lemmy.myserv.one
      link
      fedilink
      English
      arrow-up
      48
      arrow-down
      1
      ·
      17 days 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
      ·
      17 days 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
      9
      arrow-down
      1
      ·
      17 days 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
        ·
        17 days ago

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

    • Skydancer@pawb.social
      link
      fedilink
      English
      arrow-up
      3
      ·
      edit-2
      15 days ago
      (partially) ftfy
      /\w(trans)(gender|sexual|(fe)?m
      ale)|masc(uline)?|(wo)?man|person)?\w/
      

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