1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-08 17:44:14 +01:00

Fix parsing of regexmap options.

--HG--
extra : rebase_source : 685f91171c5dd8262d85fb2b67218b833f03b797
This commit is contained in:
Kris Maglione
2010-09-22 13:58:54 -04:00
parent a6d72b6854
commit 97072fd46f

View File

@@ -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 = [];