lib/regexp-examples/repeaters.rb in regexp-examples-0.2.2 vs lib/regexp-examples/repeaters.rb in regexp-examples-0.2.3
- old
+ new
@@ -58,10 +58,10 @@
end
class RangeRepeater < BaseRepeater
def initialize(group, min, has_comma, max)
super(group)
- @min = min
+ @min = min || 0
if max
@max = max
elsif has_comma
@max = min + TIMES
else