lib/polyfill/v2_4/regexp.rb in polyfill-1.6.0 vs lib/polyfill/v2_4/regexp.rb in polyfill-1.7.0

- old
+ new

@@ -1,9 +1,9 @@ module Polyfill module V2_4 module Regexp def match?(string, position = 0) - !!(string[position..-1] =~ self) # rubocop:disable Style/InverseMethods + !!(string[position..-1] =~ self) end end end end