metasploit-framework/lib/active_support/json/encoders/regexp.rb

10 lines
127 B
Ruby

class Regexp
def to_json(options = nil) #:nodoc:
inspect
end
def as_json(options = nil) #:nodoc:
self
end
end