You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that checkManaged uses match[1] when it should be using match[0].
Workaround: Enclosing the entire regex in a capture group fixes it.
What is the expected behavior?
A regex in managedPaths should work without a capture group. If for some reason a capture group is actually necessary then it should be clearly documented with an example and an explanation of the reason.
Bug report
What is the current behavior?
Using a regex with managedPaths results in the following error:
If the current behavior is a bug, please provide the steps to reproduce.
It appears that checkManaged uses
match[1]
when it should be usingmatch[0]
.Workaround: Enclosing the entire regex in a capture group fixes it.
What is the expected behavior?
A regex in managedPaths should work without a capture group. If for some reason a capture group is actually necessary then it should be clearly documented with an example and an explanation of the reason.
Other relevant information:
webpack version: 5.70.0
Node.js version: 16.14.0
Operating System: Linux
Additional tools: N/A
The text was updated successfully, but these errors were encountered: