• JackbyDev@programming.dev
    link
    fedilink
    English
    arrow-up
    2
    ·
    3 hours ago

    There are plenty of non ASCII characters that are okay in code. ñ comes to mind. There are also box drawing characters.

    • pftbest@sh.itjust.works
      link
      fedilink
      arrow-up
      1
      ·
      55 minutes ago

      We don’t use them in my project, I only added an exception for ©®™ and such. You can easily whitelist any character range you need. My command looks like this:

      - (! grep -r -I -P '[^\x{00}-\x{7f}©®™°]' src)