Merge remote-tracking branch 'wchen-r7/optint_valid' into rapid7

bug/bundler_fix
James Lee 2013-01-11 17:43:19 -06:00
commit f9fe9441f0
1 changed files with 1 additions and 1 deletions

View File

@ -441,7 +441,7 @@ class OptInt < OptBase
def valid?(value)
return false if empty_required_value?(value)
if value and not normalize(value).to_s.match(/^\d+$/)
if value and not value.to_s.match(/^\d+$/)
return false
end