lib/polyfill/v2_4/regexp.rb in polyfill-0.10.0 vs lib/polyfill/v2_4/regexp.rb in polyfill-1.0.0
- old
+ new
@@ -1,9 +1,9 @@
module Polyfill
module V2_4
module Regexp
def match?(string, position = 0)
- !!(string[position..-1] =~ self)
+ !!(string[position..-1] =~ self) # rubocop:disable Style/InverseMethods
end
end
end
end