Replying to Avatar Silberengel

nostr:npub12vkcxr0luzwp8e673v29eqjhrr7p9vqq8asav85swaepclllj09sylpugg, you appear to be accidentally swapping out entire URLs that contain npub addresses, rather than only when they're listed alone or with the nostr: prefix. It's probably an error in your regex, but this makes it hard for your users to find out about other apps by following hyperlinks they see in their Primal feed. Also, I often do this to share some particular information displayed on the other app, and if you swap out the links, then the readers can't see what I intended.

Here, two examples from Jumble and Lumina.

https://primal.net/e/nevent1qvzqqqqqqypzplfq3m5v3u5r0q9f255fdeyz8nyac6lagssx8zy4wugxjs8ajf7pqqsyqnj79symsak0gmlllpe0rfl6c3cu65u6fuq59zg2wty05gtpwts2lk9d8

https://primal.net/e/nevent1qvzqqqqqqypzplfq3m5v3u5r0q9f255fdeyz8nyac6lagssx8zy4wugxjs8ajf7pqydhwumn8ghj7argv4nx7un9wd6zumn0wd68yvfwvdhk6tcprdmhxue69uhhg6r9vehhyetnwshxummnw3erztnrdakj7qpqdcysz0ekxta0vve7dclen9pvtn67z78s9u87qsghx5c5s3akwx7qg3mynk

Man! I hate regex. By brain shortcircuits any time I come within 100 meters of one.

Reply to this note

Please Login to reply.

Discussion

Same, I spent a week on a markdown regex and then we found a bunch of errors in it, and I took a week off, to work on other things, because I was like

NOT TODAY, REGEX!

I've also noticed that AI is even worse at regex than humans are, which says a lot.

AI is an average rite*/*ya amIwrong? 4 mass app. th@ IZ*/*ya

For real? Wow. I thought AI would be good at it. I wonder if it's for similar reasons that it couldn't count the 'r's in "strawberry"?

Regex is more common-sense and personal experience than algorithm.