mirror of
https://github.com/github/codeql.git
synced 2026-05-01 19:55:15 +02:00
remove duplicated test cases from ReDoS, and adjust variables names to match test output
This commit is contained in:
@@ -306,7 +306,7 @@ private module CharacterClasses {
|
||||
* Gets a char that could be matched by a regular expression.
|
||||
* Includes all printable ascii chars, all constants mentioned in a regexp, and all chars matches by the regexp `/\s|\d|\w/`.
|
||||
*/
|
||||
private string getARelevantChar() {
|
||||
string getARelevantChar() {
|
||||
exists(ascii(result))
|
||||
or
|
||||
exists(RegexpCharacterConstant c | result = c.getValue().charAt(_))
|
||||
|
||||
Reference in New Issue
Block a user