Repository navigation
Reject trailing content in hyperlink parameter sequences - #296
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #296 +/- ##
=======================================
Coverage 87.82% 87.82%
=======================================
Files 41 41
Lines 5628 5628
Branches 1511 1511
=======================================
Hits 4943 4943
Misses 319 319
Partials 366 366 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Owner
|
This method is not documented one way or the other for this behavior, this change has no effect where parse is used in this codebase. I can only assume this is from AI static analysis, if I don't accept these changes then it is likely other people will be boiling water to re-submit the same, so I guess the best approach is to accept. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
HyperlinkParams.parse() accepts trailing text after a valid OSC8 opener even though it parses one complete sequence. Use fullmatch so trailing text, newlines and SGR escapes are rejected with the existing ValueError. Hyperlink.parse() continues scanning surrounding text as before.
Add six regression cases covering BEL and ST terminators.
Validation: the full pure-Python suite has 1,682 passed and 51 skipped; all 20 hyperlink tests pass. Configured Flake8, isort and docformatter checks and git diff --check pass.