-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Improve OSC 8 Hyperlink parsing logic #7962
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
Conversation
|
Pro tips: you may want to use "Split" mode to view the diff. |
zadjii-msft
left a comment
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.
protip: also use the "Hide whitespace changes" option, makes this even easier to review.
DHowett
left a comment
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.
|
After some consideration, I've repurposed this PR to improve the OSC 8 hyperlink parsing, instead of just trying to make use of The usage of |
PankajBhojwani
left a comment
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.
Looks good to me, thank you for this!
| result = SplitString(L"1", L';'); | ||
| VERIFY_ARE_EQUAL(1u, result.size()); | ||
| result = SplitString(L";", L';'); | ||
| VERIFY_ARE_EQUAL(2u, result.size()); |
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.
OK the result may seem weird in a general purpose function. But it works pretty well as for parameter parsing for VT sequences.
|
A ping to stop the bot from marking the PR as stale. |
DHowett
left a comment
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.
Minor things
Co-authored-by: Dustin L. Howett <dustin@howett.net>
|
Well, what do you know, the "minor" thing is causing |
|
Hmm. That warning seems to be overzealous. We should suppress it. |
New misspellings found, please review:
To accept these changes, run the following commands✏️ Contributor please read thisBy default the command suggestion will generate a file named based on your commit. That's generally ok as long as you add the file to your commit. Someone can reorganize it later.
If the listed items are:
See the 🔬 You can test your commits without appending to a PR by creating a new branch with that extra change and pushing it to your fork. The :check-spelling action will run in response to your push -- it doesn't require an open pull request. By using such a branch, you can limit the number of typos your peers see you make. 😉
|
|
Hey, what do you know, the tests passed like it should. @DHowett Can I get a green light on this one? |
DHowett
left a comment
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! Sorry -- I was worried about making some string parsing changes as it were. I kicked back for far too long on this PR.
|
Hello @DHowett! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
This PR improves the OSC 8 Hyperlink parsing logic, by adding support to
:in params.Validation Steps Performed
Tests added & passed.