Skip to content
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

toType detection has broken "to: '[1]'" #369

Closed
andyburke opened this issue Apr 3, 2019 · 3 comments · Fixed by #375
Closed

toType detection has broken "to: '[1]'" #369

andyburke opened this issue Apr 3, 2019 · 3 comments · Fixed by #375

Comments

@andyburke
Copy link

  • Operating System: MacOS
  • Node Version: 10.15.3
  • NPM Version: 6.9.0
  • webpack Version: 4.29.6
  • copy-webpack-plugin Version: 5.0.2

Expected Behavior

You should be able to specify a to: like '[1]' or 'foo/[1]'.

Actual Behavior

Files are being put in a literal directory named '[1]'.

Code

I believe this is caused somewhere in this change: 52f8be6

I apologize for not submitting a PR instead, as that is my preferred way to deal with bugs, but I do not have time to dig on this right now.

How Do We Reproduce?

Create a to: setting of '[1]' that is a replacement from a RegExp test.

@alexander-akait
Copy link
Member

Please provide minimum reproducible test repo, thanks

@andyburke
Copy link
Author

@evilebottnawi I added a comment on the change with what I believe is causing this issue. Unfortunately, I do not have time to build a minimum repro case right now.

@alexander-akait
Copy link
Member

Thanks, it is bug, feel free to send a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment