summaryrefslogtreecommitdiff
path: root/lib/slop/option.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/slop/option.rb')
-rw-r--r--lib/slop/option.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/slop/option.rb b/lib/slop/option.rb
index 09944c1..e462366 100644
--- a/lib/slop/option.rb
+++ b/lib/slop/option.rb
@@ -150,7 +150,7 @@ class Slop
case value.to_s
when /\A(\d+?)(?:\.\.|-|,)(\d+)\z/
Integer($1) .. Integer($2)
- when /\A(\d+?)...(\d+)\z/
+ when /\A(\d+?)\.\.\.(\d+)\z/
Integer($1) ... Integer($2)
else
value