diff options
Diffstat (limited to 'background_scripts/commands.coffee')
| -rw-r--r-- | background_scripts/commands.coffee | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/background_scripts/commands.coffee b/background_scripts/commands.coffee index fbecc8f0..4e8c48ca 100644 --- a/background_scripts/commands.coffee +++ b/background_scripts/commands.coffee @@ -84,8 +84,8 @@ Commands = options[parse[0]] = if parse.length == 1 then true else parse[1] # We parse any `count` option immediately (to avoid having to parse it repeatedly later). - unless @availableCommands[command].noRepeat - options.count = try Math.max 1, parseInt options.count + if "count" of options and not @availableCommands[command].noRepeat + options.count = if /^[1-9]/.test options.count then parseInt options.count else 1 options |
