remove duplicated test cases from ReDoS, and adjust variables names to match test output

This commit is contained in:
Erik Krogh Kristensen
2020-11-18 14:49:09 +01:00
parent 8270bf5bb9
commit c4153a617e
4 changed files with 27 additions and 45 deletions

View File

@@ -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(_))