From 3abda6bbd8df67351254654881c7886bebde7f01 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 23 Sep 2010 06:11:35 +0000 Subject: [PATCH] Use regexp object instead of string --- chrome/content/zotero/overlay.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);