diff --git a/common/content/util.js b/common/content/util.js index 98233123..342f89af 100644 --- a/common/content/util.js +++ b/common/content/util.js @@ -484,7 +484,7 @@ const util = { //{{{ // if the string doesn't look like a valid URL (i.e. contains a space // or starts with a known protocol try opening it with a search engine // or keyword bookmark - let proto = url.match(/^(\w+):/); + let proto = url.match(/^([-\w]+):/); if (/\s/.test(url) || !proto || !Components.classes["@mozilla.org/network/protocol;1?name=" + proto[1]]) { // TODO: it would be clearer if the appropriate call to