File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed
python/ql/src/semmle/python Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -479,18 +479,18 @@ class RegExpEscape extends RegExpNormalChar {
479479 // )
480480 none ( )
481481 }
482-
483- /**
484- * Gets int value for the `index`th char in the hex number of the unicode escape.
485- * E.g. for `\u0061` and `index = 2` this returns 96 (the number `6` interpreted as hex).
486- */
487- private int getHexValueFromUnicode ( int index ) {
488- isUnicode ( ) and
489- exists ( string hex , string char | hex = getText ( ) .suffix ( 2 ) |
490- char = hex .charAt ( index ) and
491- result = 16 .pow ( hex .length ( ) - index - 1 ) * toHex ( char )
492- )
493- }
482+ // TODO: Enable this once a supporting CLI is released.
483+ // / **
484+ // * Gets int value for the `index`th char in the hex number of the unicode escape.
485+ // * E.g. for `\u0061` and `index = 2` this returns 96 (the number `6` interpreted as hex).
486+ // */
487+ // private int getHexValueFromUnicode(int index) {
488+ // isUnicode() and
489+ // exists(string hex, string char | hex = getText().suffix(2) |
490+ // char = hex.charAt(index) and
491+ // result = 16.pow(hex.length() - index - 1) * toHex(char)
492+ // )
493+ // }
494494}
495495
496496/**
You can’t perform that action at this time.
0 commit comments