cm0002@no.lastname.nz to Funny@sh.itjust.worksEnglish · 2 months agoAny day nowlemmy.mlimagemessage-square58linkfedilinkarrow-up1613arrow-down111cross-posted to: [email protected]
arrow-up1602arrow-down1imageAny day nowlemmy.mlcm0002@no.lastname.nz to Funny@sh.itjust.worksEnglish · 2 months agomessage-square58linkfedilinkcross-posted to: [email protected]
minus-squareJackbyDev@programming.devlinkfedilinkEnglisharrow-up4·1 month agoThere are plenty of non ASCII characters that are okay in code. ñ comes to mind. There are also box drawing characters.
minus-squarepftbest@sh.itjust.workslinkfedilinkarrow-up3·1 month agoWe 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)
minus-squareJackbyDev@programming.devlinkfedilinkEnglisharrow-up3·1 month agoThis is goofy, I’m not gonna fail a build because somebody used some random Unicode character. That’s draconian.
There are plenty of non ASCII characters that are okay in code. ñ comes to mind. There are also box drawing characters.
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:
This is goofy, I’m not gonna fail a build because somebody used some random Unicode character. That’s draconian.