blob: efbd708aee5e2c2da20a605292a96345da151c9b (
plain) (
tree)
|
|
# frozen_string_literal: true
class Regexp #:nodoc:
def multiline?
options & MULTILINE == MULTILINE
end
def match?(string, pos = 0)
!!match(string, pos)
end unless //.respond_to?(:match?)
end
|