mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
10 lines
369 B
Plaintext
10 lines
369 B
Plaintext
import javascript
|
|
import semmle.javascript.CharacterEscapes::CharacterEscapes
|
|
|
|
from DataFlow::Node n, string char
|
|
where
|
|
char = getAnIdentityEscapedCharacter(n, _, _) and
|
|
not hasALikelyRegExpPatternMistake(n) and
|
|
not char = "\n" // ignore escaped newlines in multiline strings
|
|
select n, "The escape sequence '\\" + char + "' is equivalent to just '" + char + "'."
|