Merge branch 'bug/optint_empty' into feature/stage_encoding

bug/bundler_fix
James Lee 2013-01-14 15:50:39 -06:00
commit a1e853500f
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.to_s.empty?
return false if empty_required_value?(value)
if value and not value.to_s.match(/^0x[0-9a-fA-F]+$|^-?\d+$/)