Skip to content

Commit c4f5009

Browse files
erik-kroghRasmusWL
andauthored
make explicit calls to member predicates
Co-authored-by: Rasmus Wriedt Larsen <[email protected]>
1 parent 440e4b9 commit c4f5009

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/ql/src/semmle/python/RegexTreeView.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
)

0 commit comments

Comments
 (0)