Skip to content

Commit c9e4537

Browse files
authored
Merge pull request #673 from Vardiak/main
fix: i18next greedy namespace regex
2 parents 370eac4 + 533d16a commit c9e4537

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/frameworks/i18next.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class I18nextFramework extends Framework {
8181

8282
const ranges: ScopeRange[] = []
8383
const text = document.getText()
84-
const reg = /useTranslation\(\s*\[?\s*['"`](.*)['"`]/g
84+
const reg = /useTranslation\(\s*\[?\s*['"`](.*?)['"`]/g
8585

8686
for (const match of text.matchAll(reg)) {
8787
if (match?.index == null)

0 commit comments

Comments
 (0)