-
Notifications
You must be signed in to change notification settings - Fork 274
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
FindMatch() not working if pattern contains box bracket characters #585
Comments
We use minimatch to find things. I believe |
@damccorm |
Could you share your repro? Minimatch should be able to handle that I believe, if I'm understanding the issue correctly. |
@vinodkumar3 any update? |
PFA logs with updated ARM task (added modification of escaping special characters in file path, '[' & ']' in this example) where Ubuntu is correctly finding the path but Windows doesn't. |
It looks to me like you're escaping incorrectly on windows. Note that in the windows version, the way you currently have it escaped there's no way to distinguish between a path seperator ( With that said, escaping minimatch on Windows is weird, see - isaacs/node-glob#212. We have docs on how to do this here. |
@damccorm |
Please check our current Issues to see if someone already reported this https://github.com/Microsoft/azure-pipelines-task-lib/issues
Environment
azure-pipelines-task-lib version: 2.8.0
Issue Description
FindMatch() is unable to find matching pattern if input pattern contains box bracket ('[' or ']') characters.
Logs
Logs are attached with this issue.
The text was updated successfully, but these errors were encountered: