Skip to content

Commit 23dc29d

Browse files
authored
use sanitized instead of stringifying again (#571)
1 parent 379d99d commit 23dc29d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ function buildInnerObject (location) {
322322
json += ${asString} + ':'
323323
`
324324

325-
code += buildValue(propertyLocation, `obj[${JSON.stringify(key)}]`)
325+
code += buildValue(propertyLocation, `obj[${sanitized}]`)
326326

327327
const defaultValue = propertyLocation.schema.default
328328
if (defaultValue !== undefined) {

0 commit comments

Comments
 (0)