Skip to content

Commit

Permalink
fix: node 14 support
Browse files Browse the repository at this point in the history
  • Loading branch information
lihbr committed Jan 16, 2025
1 parent bbcd15c commit e37b39a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/buildFieldProperties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ function buildFieldProperty(
Array.isArray(args.field.config.variants) &&
args.field.config.variants.length > 0
? args.field.config.variants
.map((variant) => `"${variant.replaceAll('"', '\\"')}"`)
.map((variant) => `"${variant.replace(/\"/g, '\\"')}"`)
.join(" | ")
: "never";

Expand Down

0 comments on commit e37b39a

Please sign in to comment.