File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
python/ql/src/semmle/python Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -473,7 +473,7 @@ class RegExpEscape extends RegExpNormalChar {
473473 * E.g. for `\u0061` this returns "a".
474474 */
475475 private string getUnicode ( ) {
476- exists ( int codepoint | codepoint = sum ( getHexValueFromUnicode ( _) ) |
476+ exists ( int codepoint | codepoint = sum ( this . getHexValueFromUnicode ( _) ) |
477477 result = codepoint .toUnicode ( )
478478 )
479479 }
@@ -483,8 +483,8 @@ class RegExpEscape extends RegExpNormalChar {
483483 * E.g. for `\u0061` and `index = 2` this returns 96 (the number `6` interpreted as hex).
484484 */
485485 private int getHexValueFromUnicode ( int index ) {
486- isUnicode ( ) and
487- exists ( string hex , string char | hex = getText ( ) .suffix ( 2 ) |
486+ this . isUnicode ( ) and
487+ exists ( string hex , string char | hex = this . getText ( ) .suffix ( 2 ) |
488488 char = hex .charAt ( index ) and
489489 result = 16 .pow ( hex .length ( ) - index - 1 ) * toHex ( char )
490490 )
You can’t perform that action at this time.
0 commit comments