Don't add underscored before numbers
This commit is contained in:
parent
7b859f356a
commit
f1ad6a55de
1 changed files with 0 additions and 3 deletions
|
|
@ -918,9 +918,6 @@ fn writeFieldName(writer: anytype, name: []const u8) !void {
|
||||||
if (i == 0) {
|
if (i == 0) {
|
||||||
escape = true;
|
escape = true;
|
||||||
try writer.writeAll("@\"");
|
try writer.writeAll("@\"");
|
||||||
} else switch (name[i - 1]) {
|
|
||||||
'0'...'9' => {},
|
|
||||||
else => try writer.writeByte('_'),
|
|
||||||
}
|
}
|
||||||
try writer.writeByte(c);
|
try writer.writeByte(c);
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue