LibUnicode: Do not replace underscores in property names

Originally, this was done to make the generated enums look more like the
rest of Serenity's enums. But for Unicode property escapes, LibUnicode
will need to compare property names from a RegExp.prototype object to
these parsed property names, which will be easier without this
modification.
This commit is contained in:
Timothy Flynn 2021-07-28 19:38:57 -04:00 committed by Linus Groh
parent 5d09a00189
commit 4eb4b06688
Notes: sideshowbarker 2024-07-18 07:44:07 +09:00

View file

@ -166,8 +166,7 @@ static void parse_prop_list(Core::File& file, PropList& prop_list)
VERIFY(segments.size() == 2);
auto code_point_range = segments[0].trim_whitespace();
auto property = segments[1].trim_whitespace().to_string();
property.replace("_", "", true);
auto property = segments[1].trim_whitespace();
auto& code_points = prop_list.ensure(property);