commit 3abda6bbd8df67351254654881c7886bebde7f01
parent 1adf489801165243e50475a565ad5633782cbf75
Author: Dan Stillman <dstillman@zotero.org>
Date: Thu, 23 Sep 2010 06:11:35 +0000
Use regexp object instead of string
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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);