1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 10:47:57 +01:00

Fix olocalhost:631

This commit is contained in:
Kris Maglione
2008-12-13 08:55:07 -05:00
parent 689c101ff3
commit 348fa9dc1a

View File

@@ -485,7 +485,7 @@ const util = { //{{{
// Ok, not a valid proto. If it looks like URL-ish (foo.com/bar),
// let Gecko figure it out.
if (/[.]/.test(url) && !/\s/.test(url))
if (/[.]/.test(url) && !/\s/.test(url) || /^[\w.]+:\d+(?:\/|$)/)
return url;
// TODO: it would be clearer if the appropriate call to