EDIT: @mindbleach@sh.itjust.works shared something that might help to circumvent this shit:
Contained in these parentheses is a zero-width joiner: ()
Basically, add those to whatever you feel that might be filtered out, then remove the parentheses. The content inside the parentheses is invisible, but it screws with regex rules.
That zero-width hack doesn’t seem to work:
len("Le()mmy") 8 len("(Lemmy)") 7
Wait how high am I? The example on top returns a length one higher than the example on bottom, because it has a non-printable character in there right?
Yes.
Uh wait did you edit the post and resolve something
Also nice going to python, I went to a web tool (Unicode char identifier) but gotta get more serious about 👨💻
I’d just post something like:
If it weren’t working your code wouldn’t count an additional character on the first string.
Anyway, this is the character., as it seems that deleting the first parenthesis also deletes the ZWJ.