diff --git a/chrome/content/zotero/overlay.js b/chrome/content/zotero/overlay.js index 0aed77312..ebc2a6ef8 100644 --- a/chrome/content/zotero/overlay.js +++ b/chrome/content/zotero/overlay.js @@ -2557,7 +2557,7 @@ var ZoteroPane = new function() * shift-click == new window, no modifier == frontmost tab */ function loadURI(uri, event, data) { - if (Zotero.isStandalone && uri.match("^https?")) { + if (Zotero.isStandalone && uri.match(/^https?/)) { var io = Components.classes['@mozilla.org/network/io-service;1'] .getService(Components.interfaces.nsIIOService); var uri = io.newURI(uri, null, null);