3 ms·
Perhaps a minor issue, but a bit of a turn off for me: you have to include "http:// http:// in your url. Otherwise you get some snarky comment like "You'll need
by retube 16y ago
Perhaps a minor issue, but a bit of a turn off for me: you have to include "http:// http:// in your url. Otherwise you get some snarky comment like "You'll need to provide me with a valid url, matey" which is even more aggrevating given that the address was a correct one. I suggest you allow people to miss this - it's more to type and I'm guessing most people are used to just bunging an address into their browser without protocol qualification.
if (!url.startsWith("http:// http://) {
url = "http:// http:// + url;
}
(Edit: for some reason the closing quotes are being stripped)
- jeremymcanally 16y agoAh yes. That joys of cargo culting a URL validation regex. I can't fix it now (per contest rules), but I'll be sure to fix that ASAP.