Skip to content

Commit 3f8ee86

Browse files
author
Brent Cook
committed
revert match change - this has problems with older ruby versions
1 parent 0ac1908 commit 3f8ee86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/opt_int.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def normalize(value)
2121

2222
def valid?(value, check_empty: true)
2323
return false if check_empty && empty_required_value?(value)
24-
return false if value.present? && !value.to_s.match?(/^0x[0-9a-fA-F]+$|^-?\d+$/)
24+
return false if value.present? && !value.to_s.match(/^0x[0-9a-fA-F]+$|^-?\d+$/)
2525
super
2626
end
2727
end

0 commit comments

Comments
 (0)