summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLee Jarvis <lee@jarvis.co>2011-04-14 12:12:40 +0100
committerLee Jarvis <lee@jarvis.co>2011-04-14 12:12:40 +0100
commit5f4c734dcb01f1a2b94232ccb82dab5caaa1047f (patch)
tree1e0f65a0afadb2cecc9f68e486904e440c272321
parent9bb02e743fd6520260a667523a5d83843757487b (diff)
downloadslop-5f4c734dcb01f1a2b94232ccb82dab5caaa1047f.tar.gz
. should be literal here
-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