mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-30 07:12:27 +01:00
Use the RegExp global function rather than calling the constructor.
This commit is contained in:
@@ -817,13 +817,13 @@ function Events() //{{{
|
||||
if (!filter)
|
||||
return macros;
|
||||
|
||||
let re = new RegExp(filter);
|
||||
let re = RegExp(filter);
|
||||
return ([macro, keys] for ([macro, keys] in macros) if (re.test(macro)));
|
||||
},
|
||||
|
||||
deleteMacros: function (filter)
|
||||
{
|
||||
let re = new RegExp(filter);
|
||||
let re = RegExp(filter);
|
||||
|
||||
for (let [item,] in macros)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user