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 dead7a8 commit eff2136Copy full SHA for eff2136
ruby/ql/lib/codeql/ruby/frameworks/ActionDispatch.qll
@@ -795,20 +795,6 @@ module ActionDispatch {
795
bindingset[input]
796
private string extractAction(string input) { result = input.regexpCapture("[^#]+#(.+)", 1) }
797
798
- /**
799
- * A basic pluralizer for English strings.
800
- * photo => photos
801
- * story => stories
802
- * TODO: remove?
803
- */
804
- bindingset[input]
805
- private string pluralize(string input) {
806
- exists(string prefix | prefix = input.regexpCapture("(.*)y", 1) | result = prefix + "ies")
807
- or
808
- not input.regexpMatch(".*y") and
809
- result = input + "s"
810
- }
811
-
812
/**
813
* The inverse of `pluralize`
814
* photos => photo
0 commit comments