File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
ruby/ql/lib/codeql/ruby/security/internal Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -96,15 +96,14 @@ module HeuristicNames {
96
96
* Gets a regular expression that identifies strings that may indicate the presence of data
97
97
* that is hashed or encrypted, and hence rendered non-sensitive, or contains special characters
98
98
* suggesting nouns within the string do not represent the meaning of the whole string (e.g. a URL or a SQL query).
99
- *`@` is not considered to be a special character as it may appear in the names of class or instance variables.
100
99
*
101
100
* We also filter out common words like `certain` and `concert`, since otherwise these could
102
101
* be matched by the certificate regular expressions. Same for `accountable` (account), or
103
102
* `secretarial` (secret).
104
103
*/
105
104
string notSensitiveRegexp ( ) {
106
105
result =
107
- "(?is).*([^\\w$.-@ ]|redact|censor|obfuscate|hash|md5|sha|random|((?<!un)(en))?(crypt|code)|certain|concert|secretar|accountant|accountab).*"
106
+ "(?is).*([^\\w$.-]|redact|censor|obfuscate|hash|md5|sha|random|((?<!un)(en))?(crypt|code)|certain|concert|secretar|accountant|accountab).*"
108
107
}
109
108
110
109
/**
You can’t perform that action at this time.
0 commit comments