mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-09 13:54:12 +01:00
Fix parsing of regexmap options.
--HG-- extra : rebase_source : 685f91171c5dd8262d85fb2b67218b833f03b797
This commit is contained in:
@@ -732,6 +732,7 @@ const Util = Module("Util", {
|
|||||||
* @returns {[string]}
|
* @returns {[string]}
|
||||||
*/
|
*/
|
||||||
split: function (str, re, limit) {
|
split: function (str, re, limit) {
|
||||||
|
re.lastIndex = 0;
|
||||||
if (!re.global)
|
if (!re.global)
|
||||||
re = RegExp(re.source || re, "g");
|
re = RegExp(re.source || re, "g");
|
||||||
let match, start = 0, res = [];
|
let match, start = 0, res = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user