Skip to content

Commit 9f9a917

Browse files
committed
fix: 🐛 migration script special chars
1 parent 2406bd8 commit 9f9a917

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

migration/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const instantTranslation = {
7474
)[1];
7575
const sanitizedName = serviceName
7676
.split('')
77-
.map(char => (['$', '^'].includes(char) ? `\\\\${char}` : char))
77+
.map(char => (['$', '^'].includes(char) ? `\\${char}` : char))
7878
.join('');
7979
return match.replace(new RegExp(`(?:(?:=\\s*|this\\.)${sanitizedName})\\.(instant|transform)`, 'g'), str =>
8080
str.replace(/instant|transform/, 'translate')

0 commit comments

Comments
 (0)