Comment on I wrote hacky tampermonkey script to fix Lemmy instance links. Any advice?

<- View Parent
ezchili@iusearchlinux.fyi ⁨1⁩ ⁨year⁩ ago

You can find it in action on regex101

Just the port is enough to make it fail but this is not even the point

The sheer number of things you have to take into account to properly parse a URL should convince you to not use regexes for it

source
Sort:hotnewtop