Issue #2103 - Fix typo in RegExp Parser

This corrects the typo where the left-hand character would determine if
the right-hand character would be added or not.

Resolves #2103
This commit is contained in:
Moonchild 2023-02-02 10:50:02 +01:00 • committed by roytam1
commit 8d3f23ed00

View file

@ -904,7 +904,7 @@ RegExpParser<CharT>::ParseCharacterClass()
if (char_class_1 == kNoCharClass)
ranges->append(CharacterRange::Singleton(char_1));
ranges->append(CharacterRange::Singleton('-'));
if (char_class_1 == kNoCharClass)
if (char_class_2 == kNoCharClass)
ranges->append(CharacterRange::Singleton(char_2));
continue;
}