aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--background_scripts/commands.coffee3
1 files changed, 2 insertions, 1 deletions
diff --git a/background_scripts/commands.coffee b/background_scripts/commands.coffee
index 01eecd81..d247425a 100644
--- a/background_scripts/commands.coffee
+++ b/background_scripts/commands.coffee
@@ -85,7 +85,8 @@ Commands =
# 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 /^[1-9]/.test options.count
+ options.count = parseInt options.count
options