Skip to content

Commit

Permalink
Merge pull request #673 from Vardiak/main
Browse files Browse the repository at this point in the history
fix: i18next greedy namespace regex
  • Loading branch information
terales authored Oct 27, 2021
2 parents 370eac4 + 533d16a commit c9e4537
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 c9e4537

Please sign in to comment.