-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Ignore git clone prefix when checking clipboard for source URL #9018
Ignore git clone prefix when checking clipboard for source URL #9018
Conversation
I've been looking at using a regex and can see two approaches:
It would make more sense to modify PathUtil.IsUrl if doing the second approach, but I'm not sure what sort of effect it'll have on other features. |
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.
I'd like to see tests for this as well.
d817251
to
5905cba
Compare
Please do a clean rebase and squash, and it's good to go |
f3794cb
to
2fafc7b
Compare
Use a regex to determine if a URL might exist in a particular string (from clipboard, user input or elsewhere). This change will not remove any text that may surround the URL, allowing the user to remove it themselves (such as in the clone dialog).
2fafc7b
to
a8128e2
Compare
Thank you! |
If you wish these changes to go out in 3.5 (which will be released very soon) then please make a PR against 3.5 branch. |
Done, see #9116 |
Fixes #6260
Proposed changes
Test methodology
Test environment(s)
✒️ I contribute this code under The Developer Certificate of Origin.