-
-
Notifications
You must be signed in to change notification settings - Fork 283
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
Won't copy files when there are square brackets [ ] in the path #231
Comments
@flawiddsouza Can you upgrade to latest version ( |
Updated. Still broken. The files aren't copied if the path contains square brackets. |
@flawiddsouza don't reproduce, what |
Windows 10 Version 1709 |
this happens for me when using regex captures:
I am expecting to get files outputted as "dirName-fileName.md" however I am getting instead [1]-fileName.md". |
I have the same issue with regular brackets in the path. I.e. Could it be related to this issue in Globby? |
@marcoqu looks like we have two issue - one in globby (i.e. node-glob) and second in chokidar 😄 Also latest globby use fast-glob package, maybe update deps can solve this problem |
Sorry. In my case this has nothing to do with the globbing. edit
|
@goldenram If you are on Windows system. You should use if you want it works on both Windows and Mac/Linux. You can leverage const path = require('path');
// then
test: new RegExp(`([^/]+)\\${path.sep}([a-z,0-9]*)\\${path.sep}(\\/?$).md`) |
* fix #231 allow brackets in path * only need take care of [ * use character sets to escape special character to avoid issue on Windows * [fix 220] create special directory/file through scripts * rm helpers directory on every test * add new line to the end of scripts * update code, add tests
A tiny repo to reproduce the issue:
https://github.com/flawiddsouza/Reproduce-bracket-bug-in-copy-webpack-plugin
Go to each folder & run:
npm install
npm start
The folder without brackets will copy the file "from" to "to" but the one with brackets will not.
The text was updated successfully, but these errors were encountered: