mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 07:28:00 +01:00
Use the RegExp global function rather than calling the constructor.
This commit is contained in:
@@ -176,7 +176,7 @@ Command.prototype = {
|
||||
let matches = args.match(/(.*)<<\s*(\S+)$/);
|
||||
if (matches && matches[2])
|
||||
{
|
||||
commandline.inputMultiline(new RegExp("^" + matches[2] + "$", "m"),
|
||||
commandline.inputMultiline(RegExp("^" + matches[2] + "$", "m"),
|
||||
function (args) { exec(matches[1] + "\n" + args); });
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user