Regex: Fix wrong size of character_class_escapes array

This commit is contained in:
Maxime Coste 2017-10-08 11:57:16 +08:00
parent 08ea68dc1f
commit bf3b50a543

View File

@ -489,14 +489,14 @@ private:
StringView additional_chars;
bool neg;
};
static const CharacterClassEscape character_class_escapes[8];
static const CharacterClassEscape character_class_escapes[4];
struct ControlEscape { Codepoint name; Codepoint value; };
static const ControlEscape control_escapes[5];
};
// For some reason Gcc fails to link if this is constexpr
const RegexParser::CharacterClassEscape RegexParser::character_class_escapes[8] = {
const RegexParser::CharacterClassEscape RegexParser::character_class_escapes[4] = {
{ 'd', "digit", "", false },
{ 'w', "alnum", "_", false },
{ 's', "space", "", false },