mirror of
https://github.com/github/codeql.git
synced 2026-02-20 08:53:49 +01:00
fix RegExpEscape::getValue having multiple results for some escapes
This commit is contained in:
@@ -468,7 +468,9 @@ class RegExpEscape extends RegExpNormalChar {
|
||||
* TODO: Handle named escapes.
|
||||
*/
|
||||
override string getValue() {
|
||||
this.isIdentityEscape() and result = this.getUnescaped()
|
||||
not this.isUnicode() and
|
||||
this.isIdentityEscape() and
|
||||
result = this.getUnescaped()
|
||||
or
|
||||
this.getUnescaped() = "n" and result = "\n"
|
||||
or
|
||||
|
||||
Reference in New Issue
Block a user