Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)EZ
Posts
8
Comments
297
Joined
2 yr. ago

  • Oh man I was hoping you'd ask because URLs are way worse than people imagine and that's still not even a tenth of what emails can do

    HtTpS://user:pw@lemdro.id:443 is a valid url to lemdro.id and should match but will not

    Http://maliciouswebsite.to/?q=http://lemdro.id will match but should not

    To give you an idea of how bad this is I suggest anyone tell me if their lemmy app parsed those properly because Thunder treats the 1st one as an email and Jerboa thinks both are URLs

    You also have the instances that have a valid address with www in front of them for old school internet habits, there's urls that can have quotes in them, urls with chinese characters or russian characters that are both valid in their encoding but have a canonical form in ASCII

    It's a mess, and the correct way to do this is still faster than your regex in the end which is crazy

  • Never use regex on URLs, they're not enough to properly do the job, you have the perfect, fast and correct URL parser already in your browser or your node binary, you need to use it, make a list of hostnames and use the browser's URL api to extract hostnames then match against the list

  • I always loved the "hardware running 24/7" e-waste part of it

    I owned a ps4 that I must have played 60 hours on for spiderman and horizon and now it's never going to be used anymore

    Would've loved a streaming platform that doesn't cost a whole console in a year in subscription fees + makes you pay for the games

  • This exact scenario with links to cloud folders is also how the infowars lawyer leaked case related stuff to the prosecution lawyer for the sandyhook families

    I have a feeling it's time to think of a better (or worse!) UI/UX to alleviate human error