diff --git a/content/treestyletab/treestyletab.js b/content/treestyletab/treestyletab.js index eb31ceb7..5ac2d808 100644 --- a/content/treestyletab/treestyletab.js +++ b/content/treestyletab/treestyletab.js @@ -403,7 +403,7 @@ var TreeStyleTabService = { var str = aURI; if (str instanceof Ci.nsIURI) str = aURI.spec; - return (/^\w+:\/\/([^:\/]+)/.test(getShortcutOrURI(str)) ? + return /^\w+:\/\/([^:\/]+)/.test(getShortcutOrURI(str)) ? RegExp.$1 : null ; },