-
-
Notifications
You must be signed in to change notification settings - Fork 185
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
fix: ReDoS problem #224
fix: ReDoS problem #224
Conversation
Codecov ReportBase: 76.66% // Head: 76.66% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## master #224 +/- ##
=======================================
Coverage 76.66% 76.66%
=======================================
Files 10 10
Lines 360 360
Branches 112 112
=======================================
Hits 276 276
Misses 73 73
Partials 11 11
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
@@ -76,7 +76,7 @@ function interpolateName(loaderContext, name, options = {}) { | |||
// `hash` and `contenthash` are same in `loader-utils` context | |||
// let's keep `hash` for backward compatibility | |||
.replace( | |||
/\[(?:([^:\]]+):)?(?:hash|contenthash)(?::([a-z]+\d*))?(?::(\d+))?\]/gi, | |||
/\[(?:([^[:\]]+):)?(?:hash|contenthash)(?::([a-z]+\d*))?(?::(\d+))?\]/gi, |
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.
Does this don't need translation? \[
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.
Close
No description provided.