We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2406bd8 commit 9f9a917Copy full SHA for 9f9a917
migration/index.js
@@ -74,7 +74,7 @@ const instantTranslation = {
74
)[1];
75
const sanitizedName = serviceName
76
.split('')
77
- .map(char => (['$', '^'].includes(char) ? `\\\\${char}` : char))
+ .map(char => (['$', '^'].includes(char) ? `\\${char}` : char))
78
.join('');
79
return match.replace(new RegExp(`(?:(?:=\\s*|this\\.)${sanitizedName})\\.(instant|transform)`, 'g'), str =>
80
str.replace(/instant|transform/, 'translate')
0 commit comments