Skip to content

Commit f9fe944

Browse files
committed
Merge remote-tracking branch 'wchen-r7/optint_valid' into rapid7
2 parents ef6eec9 + 0347b17 commit f9fe944

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/option_container.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ def normalize(value)
441441
def valid?(value)
442442
return false if empty_required_value?(value)
443443

444-
if value and not normalize(value).to_s.match(/^\d+$/)
444+
if value and not value.to_s.match(/^\d+$/)
445445
return false
446446
end
447447

0 commit comments

Comments
 (0)