Elon Musk’s X botched an attempt to replace “twitter.com” links with “x.com”
Elon Musk’s X botched an attempt to replace “twitter.com” links with “x.com”
Automatic text replacement let users spoof URLs ending in x, like netflix.com.
![Elon Musk’s X botched an attempt to replace “twitter.com” links with “x.com”](https://lemmy.ml/pictrs/image/b935afc7-2698-44b0-8173-96dcef90f6a8.jpeg?format=webp&thumbnail=256)
You're viewing a single thread.
Regex is hard y'all
67 0 ReplyWell, they can be, but fucking this particular one up took outright ineptitude
39 1 ReplyIf "Twitter" in urlField then Replace urlField "Twitter" "X"
Jobs finished boss
28 2 ReplyWith skills like this you too could be working for the fascist billionaire manbaby's personal vanity social media service
27 1 ReplyThank you capitalism 🤗
15 0 ReplyMeet the new Gilded Age, same as the old Gilded Age.
5 1 Reply
Which one do you mean?
8 0 ReplyGood point, I should probably have said "working for a fascist billionaire manbaby"
6 1 ReplyAgain, that doesn't really narrow it down.
2 1 ReplyIt wasn't supposed to narrow it down, quite the opposite
1 1 Reply
At this point I have to assume it's malicious compliance by staff to make Elon look bad.
9 2 Replyto make Elon look bad.
why would he need any help when he's doing so much on his own?
1 0 Reply
It’s really not though. It’s actually pretty simple under the hood.
4 0 ReplyBut something that you should probably be able to figure out over the course of 12 months of development and testing.
3 0 Replyactually url/uri spec is surprisingly complex, I'm not even sure it's possible to fully/correctly match it with regex without false positives or negatives, especially in twitters case where even things like "google.com" are accepted as valid urls (without the protocol part, which is otherwise mandatory)
3 0 Reply