summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibUnicode/CodeGenerators
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2021-07-28 19:38:57 -0400
committerLinus Groh <mail@linusgroh.de>2021-07-30 21:26:31 +0100
commit4eb4b06688e676ac7d37b9f6013f98ad5d75a956 (patch)
tree84f149a47062988d3b421dfb74f9afe7af943781 /Userland/Libraries/LibUnicode/CodeGenerators
parent5d09a00189f1b01c5d72ab83afb3381eb67854ab (diff)
downloadserenity-4eb4b06688e676ac7d37b9f6013f98ad5d75a956.zip
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.
Diffstat (limited to 'Userland/Libraries/LibUnicode/CodeGenerators')
-rw-r--r--Userland/Libraries/LibUnicode/CodeGenerators/GenerateUnicodeData.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Userland/Libraries/LibUnicode/CodeGenerators/GenerateUnicodeData.cpp b/Userland/Libraries/LibUnicode/CodeGenerators/GenerateUnicodeData.cpp
index b0caabb32f..66acb2af51 100644
--- a/Userland/Libraries/LibUnicode/CodeGenerators/GenerateUnicodeData.cpp
+++ b/Userland/Libraries/LibUnicode/CodeGenerators/GenerateUnicodeData.cpp
@@ -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);