Skip to content

Commit

Permalink
fix: invalid Svelte regex (#1001)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZerdoX-x committed Aug 30, 2023
1 parent bc6328a commit fe4e464
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frameworks/svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class SvelteFramework extends Framework {

// for visualize the regex, you can use https://regexper.com/
usageMatchRegex = [
'(\\$(_|t|format)|(get)\\(\s*(_|t|format)\s*\\))\(\s*[\'"`]({key})[\'"`]',
'(\\$(_|t|format)|(get)\\(\\s*(_|t|format)\\s*\\))\\(\\s*[\'"`]({key})[\'"`]',
]

refactorTemplates(keypath: string) {
Expand Down

0 comments on commit fe4e464

Please sign in to comment.