mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-04 20:44:11 +01:00
@@ -530,8 +530,7 @@ var Events = Module("events", {
|
||||
*/
|
||||
playMacro: function (macro) {
|
||||
let res = false;
|
||||
dactyl.assert(!/[a-zA-Z0-9@]/.test(macro) && macro.length == 1,
|
||||
_("macro.invalid", macro));
|
||||
dactyl.assert(/^[a-zA-Z0-9@]$/.test(macro), _("macro.invalid", macro));
|
||||
|
||||
if (macro == "@")
|
||||
dactyl.assert(this._lastMacro, _("macro.noPrevious"));
|
||||
|
||||
Reference in New Issue
Block a user