mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-16 23:52:30 +02:00
Fix parsing of regexmap options.
--HG-- extra : rebase_source : 685f91171c5dd8262d85fb2b67218b833f03b797
This commit is contained in:
1 parent
a6d72b6854
commit
97072fd46f
1 file changed
+1
@@ -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 = [];
|
||||
|
||||
Reference in new issue
Block a user