blob: 23b337ba67cf0b0fffe849353b6356dcc4bc7d94 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
# 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
|