We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a29bee8 commit 289af25Copy full SHA for 289af25
src/frameworks/next-intl.ts
@@ -28,13 +28,13 @@ class NextIntlFramework extends Framework {
28
29
usageMatchRegex = [
30
// Basic usage
31
- '[^\\w\\d]t\\([\'"`]({key})[\'"`]',
+ '[^\\w\\d]t\\s*\\(\\s*[\'"`]({key})[\'"`]',
32
33
// Rich text
34
- '[^\\w\\d]t\.rich\\([\'"`]({key})[\'"`]',
+ '[^\\w\\d]t\\s*\.rich\\s*\\(\\s*[\'"`]({key})[\'"`]',
35
36
// Raw text
37
- '[^\\w\\d]t\.raw\\([\'"`]({key})[\'"`]',
+ '[^\\w\\d]t\\s*\.raw\\s*\\(\\s*[\'"`]({key})[\'"`]',
38
]
39
40
refactorTemplates(keypath: string) {
0 commit comments