-
-
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
fix(preProcessPatterns): support glob context paths with special characters #208
fix(preProcessPatterns): support glob context paths with special characters #208
Conversation
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.
Need more tests. Thanks for PR!
Oddly, |
6f877e3
to
b7bfb1a
Compare
Alright. Updated to be more comprehensive and with additional test cases. |
b7bfb1a
to
37bf5ba
Compare
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.
Look good! Only one change.
src/preProcessPattern.js
Outdated
@@ -7,6 +7,29 @@ import isObject from './utils/isObject'; | |||
// https://www.debuggex.com/r/VH2yS2mvJOitiyr3 | |||
const isTemplateLike = /(\[ext\])|(\[name\])|(\[path\])|(\[folder\])|(\[emoji(:\d+)?\])|(\[(\w+:)?hash(:\w+)?(:\d+)?\])|(\[\d+\])/; | |||
|
|||
function escape(context, from) { |
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.
Move escape
to src/utils
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.
Done.
37bf5ba
to
3ed8b70
Compare
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.
Great job!
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.
@clydin Thx
context
paths with special characters (i.e., glob characters) will cause files to not be copied. This is especially important when the context represents the absolute path to a location and the path is not under the control of the project using the plugin.Tests have been updated and additional test cases added.
Addresses: angular/angular-cli#9230