mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-11 05:32:59 +00:00
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:
parent
5d09a00189
commit
4eb4b06688
Notes:
sideshowbarker
2024-07-18 07:44:07 +09:00
Author: https://github.com/trflynn89
Commit: 4eb4b06688
Pull-request: https://github.com/SerenityOS/serenity/pull/9090
Reviewed-by: https://github.com/Dexesttp
Reviewed-by: https://github.com/davidot
Reviewed-by: https://github.com/linusg
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue