lib/goodcheck/pattern.rb in goodcheck-2.1.0 vs lib/goodcheck/pattern.rb in goodcheck-2.1.1

- old
+ new

@@ -110,10 +110,10 @@ ) } @@TYPES[:int] = -> (name) { ::Regexp.union( - /(?<#{name}>[+-]?[1-9](:?\d|_\d)*)/, + /(?<#{name}>[+-]?0|[1-9](:?\d|_\d)*)/, /(?<#{name}>[+-]?0[dD][0-7]+)/, /(?<#{name}>[+-]?0[oO]?[0-7]+)/, /(?<#{name}>[+-]?0[xX][0-9a-fA-F]+)/, /(?<#{name}>[+-]?0[bB][01]+)/ )