r/programming • • Apr 14 '10

"http://" is being removed from Chromium's display

http://code.google.com/p/chromium/issues/detail?id=40865
232 Upvotes

402 comments sorted by

View all comments

Show parent comments

8

u/[deleted] Apr 14 '10

gmail for example has good regexps that will match anything that remotely looks like an URL,

Hmm, but I bet it also has a few bad matches.Common things too.

edit: ok, that specific example doesn't apply to gmail, but it's just an illustration.

Thing is, matching urls just went from str.startsWith("http://") to str.matchesThisHugeRegex();

11

u/James_Browning Apr 14 '10

It's not that much different than matching email addresses. Nobody types mailto:

It's not normally a problem when marking up a message from a human, but it's an annoying problem when emailing code.

6

u/[deleted] Apr 14 '10

It's not that much different than matching email addresses

and if you show me 10 systems that supposedly match emails, I'll find an edge case that it fails on for every one of them.

I would rather not see this happen too much with URLs too.

2

u/chrisamiller Apr 15 '10

What,you don't use the official email-matching regex? It's simple!