Deal with alread-normalized ints

[See #1308][See #1304]
bug/bundler_fix
James Lee 2013-01-14 15:31:02 -06:00
parent 83877b6c76
commit 0c90171fa7
1 changed files with 1 additions and 1 deletions

View File

@ -443,7 +443,7 @@ class OptInt < OptBase
end
def valid?(value)
return super if !required and value and value.empty?
return super if !required and value and value.to_s.empty?
return false if empty_required_value?(value)
if value and not value.to_s.match(/^0x[0-9a-fA-F]+$|^-?\d+$/)