-
Notifications
You must be signed in to change notification settings - Fork 263
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 issue with Windows pathes not being escaped when applying a regexp. #1395
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1395 +/- ##
=======================================
Coverage 78.12% 78.12%
=======================================
Files 160 160
Lines 8234 8234
=======================================
Hits 6433 6433
Misses 1107 1107
Partials 694 694
Continue to review full report at Codecov.
|
@@ -335,6 +335,15 @@ func TestRunWithExit(t *testing.T) { | |||
} | |||
} | |||
|
|||
func TestExtractCommandPathFromErrorMessage(t *testing.T) { |
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.
👍
Thanks! Looks good to me. @rhuss fancy adding changelog entry for the fix? |
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.
No easy why to really test this myself. Assuming you did.
/ok-to-test
/approve
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: maximilien, rhuss The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Description
There have been issues when a full Windows path has been inserted literally to create a regexp, since the backslashes used as path separators are confusing the regexp engine. This fix will quote any input coming from the outside.