Skip to content

Commit 65ad81f

Browse files
committed
JSON.stringify property names
1 parent badaa7e commit 65ad81f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function build(input) {
7575
else if (propName) {
7676
if (!spread) out += ',';
7777
if (propCount === 0) out += '({';
78-
out += propName + ':';
78+
out += JSON.stringify(propName) + ':';
7979
out += field || ((propHasValue || buffer) && JSON.stringify(buffer)) || 'true';
8080
propName = '';
8181
spread = false;

0 commit comments

Comments
 (0)