From 9148d00ede11c9815cd6dbc50bcab4c2fcd7fe71 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Sat, 13 Nov 2010 23:27:25 +1100 Subject: [PATCH] Fix command arg count validation. --- common/content/commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/content/commands.js b/common/content/commands.js index bcb7218f..12fe55e5 100644 --- a/common/content/commands.js +++ b/common/content/commands.js @@ -269,7 +269,7 @@ const Command = Class("Command", { get literalArg() this.command.literal != null && this[this.command.literal] || "", // TODO: string: Class.memoize(function () { ... }), verify: function verify() { - if (this.argCount) { + if (this.command.argCount) { dactyl.assert((this.length > 0 || !/^[1+]$/.test(this.command.argCount)) && (this.literal == null || !/[1+]/.test(this.command.argCount) || /\S/.test(this.literalArg || "")), "E471: Argument required");