Skip to content

Fixed problem where match string contain special characters#18878

Merged
karrtikr merged 9 commits into
microsoft:mainfrom
sunyinqi0508:main
Apr 11, 2022
Merged

Fixed problem where match string contain special characters#18878
karrtikr merged 9 commits into
microsoft:mainfrom
sunyinqi0508:main

Conversation

@sunyinqi0508

@sunyinqi0508 sunyinqi0508 commented Apr 7, 2022

Copy link
Copy Markdown

Closes #18829

@karthiknadig karthiknadig requested a review from karrtikr April 7, 2022 17:00

@karrtikr karrtikr left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thanks for the PR! Please add a news entry thanking yourself (see news/README.md for details).

Comment thread src/client/common/process/logger.ts Outdated
@ghost

ghost commented Apr 8, 2022

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

Comment thread src/client/common/process/logger.ts Outdated
@karrtikr karrtikr added the skip tests Updates to tests unnecessary label Apr 9, 2022
@karrtikr karrtikr self-assigned this Apr 9, 2022
Comment thread src/client/common/process/logger.ts Outdated

@karrtikr karrtikr left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thanks again for investigating the cause, this could potentially fix a lot of ongoing issues like #18567 #18478 #18437!

@karrtikr karrtikr merged commit 5932e99 into microsoft:main Apr 11, 2022
wesm pushed a commit to posit-dev/positron that referenced this pull request Mar 28, 2024
…t/vscode-python#18878)

* Fixed problem where match string contain special characters

* Fixes issue where () and | are escaped for windows

* Fixed a problem when some characters are not escaped.
Added Credits.

* Update src/client/common/process/logger.ts

Simplify code.

Co-authored-by: Kartik Raj <karraj@microsoft.com>

* Only replace '\\' with '(\\|/)' on Windows to save a scan on other OSs.

* Update src/client/common/process/logger.ts

Co-authored-by: Kartik Raj <karraj@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip tests Updates to tests unnecessary

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Invalid regular expression logging error occurs when file paths contain special characters

3 participants