Skip to content

Commit

Permalink
fix: i18next greedy namespace regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Vardiak committed Oct 5, 2021
1 parent 370eac4 commit 533d16a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frameworks/i18next.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class I18nextFramework extends Framework {

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

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

0 comments on commit 533d16a

Please sign in to comment.