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 {
473
473
* E.g. for `\u0061` this returns "a".
474
474
*/
475
475
private string getUnicode ( ) {
476
- exists ( int codepoint | codepoint = sum ( getHexValueFromUnicode ( _) ) |
476
+ exists ( int codepoint | codepoint = sum ( this . getHexValueFromUnicode ( _) ) |
477
477
result = codepoint .toUnicode ( )
478
478
)
479
479
}
@@ -483,8 +483,8 @@ class RegExpEscape extends RegExpNormalChar {
483
483
* E.g. for `\u0061` and `index = 2` this returns 96 (the number `6` interpreted as hex).
484
484
*/
485
485
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 ) |
488
488
char = hex .charAt ( index ) and
489
489
result = 16 .pow ( hex .length ( ) - index - 1 ) * toHex ( char )
490
490
)
You can’t perform that action at this time.
0 commit comments