Skip to content

Commit 6613745

Browse files
committed
Land rapid7#4453, OptRegexp default attr fix
2 parents 76627ec + 725a17c commit 6613745

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/msf/core/option_container.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,10 @@ def normalize(value)
527527
return Regexp.compile(value)
528528
end
529529

530+
def default
531+
@default.to_s
532+
end
533+
530534
def display_value(value)
531535
if value.kind_of?(Regexp)
532536
return value.source

0 commit comments

Comments
 (0)