lib/polyfill/v2_4/regexp.rb in polyfill-0.6.0 vs lib/polyfill/v2_4/regexp.rb in polyfill-0.7.0

- old
+ new

@@ -1,9 +1,9 @@ -require_relative 'regexp/instance' - module Polyfill module V2_4 module Regexp - include Instance + def match?(string, position = 0) + !!(string[position..-1] =~ self) + end end end end