From 97072fd46f7509fbc5c9cae79fd69af0f9ff2fb1 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Wed, 22 Sep 2010 13:58:54 -0400 Subject: [PATCH] Fix parsing of regexmap options. --HG-- extra : rebase_source : 685f91171c5dd8262d85fb2b67218b833f03b797 --- common/modules/util.jsm | 1 + 1 file changed, 1 insertion(+) diff --git a/common/modules/util.jsm b/common/modules/util.jsm index 6354c83b..8649de6d 100644 --- a/common/modules/util.jsm +++ b/common/modules/util.jsm @@ -732,6 +732,7 @@ const Util = Module("Util", { * @returns {[string]} */ split: function (str, re, limit) { + re.lastIndex = 0; if (!re.global) re = RegExp(re.source || re, "g"); let match, start = 0, res = [];