Skip to content

Commit

Permalink
fix: replaceAll
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Jun 18, 2022
1 parent 8a168e2 commit ac98dc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const escapeString = (str: string) => {
wrap: true,
es6: true,
})
return text.replaceAll(RAW_RE, '${$1}')
return text.replace(RAW_RE, '${$1}')
}
export const isPrimitive = (val: unknown): val is Primitive => {
if (typeof val === 'object') return val === null
Expand Down

0 comments on commit ac98dc7

Please sign in to comment.