Skip to content

Commit 9f26085

Browse files
committed
Ruby: Model more ActiveSupport string extensions
1 parent b389d50 commit 9f26085

File tree

3 files changed

+495
-343
lines changed

3 files changed

+495
-343
lines changed

ruby/ql/lib/codeql/ruby/frameworks/ActiveSupport.qll

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,11 @@ module ActiveSupport {
5252
override MethodCall getACall() {
5353
result.getMethodName() =
5454
[
55-
"camelize", "camelcase", "classify", "dasherize", "deconstantize", "demodulize",
56-
"foreign_key", "humanize", "indent", "parameterize", "pluralize", "singularize",
57-
"squish", "strip_heredoc", "tableize", "titlecase", "titleize", "underscore",
55+
"at", "camelize", "camelcase", "classify", "dasherize", "deconstantize", "demodulize",
56+
"first", "foreign_key", "from", "html_safe", "humanize", "indent", "indent!",
57+
"inquiry", "last", "mb_chars", "parameterize", "pluralize", "remove", "remove!",
58+
"singularize", "squish", "squish!", "strip_heredoc", "tableize", "titlecase",
59+
"titleize", "to", "truncate", "truncate_bytes", "truncate_words", "underscore",
5860
"upcase_first"
5961
]
6062
}

0 commit comments

Comments
 (0)