Thomas Steiner :chrome: on Nostr: npub19lt42…6qfjk Tangent: URL parsing is hard. Here’s Twitter’s reference ...
npub19lt4284mghqxekzm6n5njxurnxrxhqhrva2leusdsuu5ja5jeycq66qfjk (npub19lt…qfjk) Tangent: URL parsing is hard. Here’s Twitter’s reference library: https://github.com/twitter/twitter-text/blob/30e2430d90cff3b46393ea54caf511441983c260/java/src/main/java/com/twitter/twittertext/Extractor.java#L302. I mostly just dug this up for myself when I remembered that it exists.