Skip to content

Commit e37b39a

Browse files
committed
fix: node 14 support
1 parent bbcd15c commit e37b39a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/buildFieldProperties.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ function buildFieldProperty(
147147
Array.isArray(args.field.config.variants) &&
148148
args.field.config.variants.length > 0
149149
? args.field.config.variants
150-
.map((variant) => `"${variant.replaceAll('"', '\\"')}"`)
150+
.map((variant) => `"${variant.replace(/\"/g, '\\"')}"`)
151151
.join(" | ")
152152
: "never";
153153

0 commit comments

Comments
 (0)