Add URL path test coverage to UrlPluginTest#4307
Merged
VictoriousRaptor merged 2 commits intojust-fix-url-small-issuesfrom Mar 1, 2026
Merged
Add URL path test coverage to UrlPluginTest#4307VictoriousRaptor merged 2 commits intojust-fix-url-small-issuesfrom
VictoriousRaptor merged 2 commits intojust-fix-url-small-issuesfrom
Conversation
Co-authored-by: VictoriousRaptor <10308169+VictoriousRaptor@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix matching issues in URL plugin based on feedback
Add URL path test coverage to UrlPluginTest
Mar 1, 2026
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.
Test coverage was missing for URLs containing paths, which are common real-world patterns. No tests validated that
IsURLcorrectly handles path components across domain, IP, localhost, and IPv6 URL types.Changes
example.com/path,example.com/path/to/resourcehttp://example.com/path,https://example.com/path?query=1192.168.1.1/path/to/resourcelocalhost:8080/api/endpoint,http://localhost/path[::1]/path💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.
Summary by cubic
Summary of changes
Tightens URL matching in the URL plugin to reduce false positives based on feedback in #4191, and adds coverage for common edge cases, including paths and queries. Improves reliability without changing user-facing commands.
Changed
Added
Removed
Tests
Security
Written for commit b118a9f. Summary will update on new commits.