-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(deps): update dependency eslint-plugin-regexp to v2 #14730
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -344,7 +344,8 @@ function viteLegacyPlugin(options: Options = {}): Plugin[] { | |
fileName = fileName.replace(/[.-]?\[hash\]/, '-legacy$&') | ||
} else { | ||
// entry.js -> entry-legacy.js | ||
fileName = fileName.replace(/(.+)\.(.+)/, '$1-legacy.$2') | ||
// entry.min.js -> entry-legacy.min.js | ||
fileName = fileName.replace(/(.+?)\.(.+)/, '$1-legacy.$2') | ||
Comment on lines
-347
to
+348
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a mini breaking change as before |
||
} | ||
|
||
return fileName | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checked https://stackoverflow.com/questions/32010/is-regex-case-insensitivity-slower and I think we should ignore this rule for now. It's suggesting our
[a-zA-Z]
regexes to use thei
flag.