We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b7ecf0 commit 752432eCopy full SHA for 752432e
activesupport/lib/active_support/inflector/inflections.rb
@@ -49,7 +49,7 @@ def add(words)
49
end
50
51
def uncountable?(str)
52
- @regex_array.any? { |regex| str =~ regex }
+ @regex_array.any? { |regex| regex === str }
53
54
55
private
0 commit comments