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

Fixed issue in CopyFiles task for directories with square brackets #9589 #11152

Merged
merged 3 commits into from
Sep 4, 2019

Conversation

jtpetty
Copy link
Contributor

@jtpetty jtpetty commented Aug 19, 2019

The issue was that the path was ultimately sent to minimatch for matching against a list of files to determine inclusion. Square brackets, [], are special characters for minimatch patterns and needed to be escaped prior to calling tl.match()

@@ -1,6 +1,6 @@
{
"loc.friendlyName": "Copy files",
"loc.helpMarkDown": "[More Information](https://go.microsoft.com/fwlink/?LinkID=708389)",
"loc.helpMarkDown": "[Learn more about this task](https://go.microsoft.com/fwlink/?LinkID=708389)",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this change intentional?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It happened automatically when I built. Seemed harmless so I left it.

@stephenmichaelf stephenmichaelf self-requested a review September 4, 2019 12:21
Copy link
Member

@stephenmichaelf stephenmichaelf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bump task.json and task.loc.json minor version.

Copy link
Contributor

@bryanmacfarlane bryanmacfarlane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jtpetty jtpetty merged commit 3e81813 into master Sep 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants