this post was submitted on 15 Feb 2025
755 points (99.3% liked)

Fedibridge

529 readers
20 users here now

A community to organize and discuss the growth of the fediverse as a whole

Related communities

Megathreads

founded 1 month ago
MODERATORS
 

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.

you are viewing a single comment's thread
view the rest of the comments
[–] Littux@lemmy.world 3 points 1 month ago* (last edited 1 month ago) (3 children)

That zero-width hack doesn't seem to work:

len("Le()mmy")
8

len("(Lemmy)")
7
[–] borari@lemmy.dbzer0.com 8 points 1 month ago (1 children)

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?

[–] Littux@lemmy.world 4 points 1 month ago (2 children)
[–] brbposting@sh.itjust.works 1 points 1 month ago

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 👨‍💻

[–] borari@lemmy.dbzer0.com 1 points 1 month ago

You said it doesn’t work, then showed an example of it working? I guess I’m still high.

[–] Sterile_Technique@lemmy.world 4 points 1 month ago

I'd just post something like:

I'll be shadowbanned for posting an actual link or mentioning the full name, but if you google "Lem reddit alternative" you'll get a lot of hits directing you the good place. Good luck, and see ya on the other side!

[–] lvxferre@mander.xyz 3 points 1 month ago

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.