no, it's really not, because there is not whitespace inside URLs, URLs are almost always bounded by whitespace
thus, when you find whitespace, it marks boundaries around the matched URL and you know that a second ... fucking... close brace... is actually, not part of the URL! idk how to say this couldn't be more obvious
it's a small piece of logic that you have been spoiled to never learn how to actually write a lexical analyser and this reminds me that the majority of the devs in the world couldn't write a lexical analyser if their life depended on it
i learned how to do it, working from a text that was part of first year computer science when i was 15 years old
you guys both just utterly lost my respect tonight