Skip to content

Commit

Permalink
chore: useless regex pieces
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Musat committed Dec 10, 2022
1 parent bc536ac commit 0871b98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/js/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ var Extensions = []string{
}

var importRegex = regexp.MustCompile(
"(import|export)\\s+?(?:(?:(?:[\\w*\\s{},]*)\\s+from\\s+?)|)(?:(?:\".*?\")|(?:'.*?'))\\s*?(?:;|$|)",
"(import|export)\\s+?((([\\w*\\s{},]*)\\s+from\\s+?)|)((\".*?\")|('.*?'))\\s*?(?:;|$|)",
)

var importPathRegex = regexp.MustCompile(
"(?:\".*?\")|(?:'.*?')",
"(\".*?\")|('.*?')",
)

type Data struct {
Expand Down

0 comments on commit 0871b98

Please sign in to comment.