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:
@@ -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