mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
fix FP related to inverted character classes choosing a char that was not matched by the char class
This commit is contained in:
@@ -222,7 +222,7 @@ abstract class CharacterClass extends InputSymbol {
|
||||
/**
|
||||
* Gets a character matched by this character class.
|
||||
*/
|
||||
string choose() { result = getARelevantChar() }
|
||||
string choose() { result = getARelevantChar() and matches(result) }
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user