-
Notifications
You must be signed in to change notification settings - Fork 122
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
Don't Change Typos inside of URL #288
Labels
enhancement
Improve the expected
Comments
Things that might be useful from another tool
|
RFC 5322 <http://www.ietf.org/rfc/rfc5322.txt> ie: http://emailregex.com/
exists
…On Thu, Jun 17, 2021 at 3:42 PM Ed Page ***@***.***> wrote:
Things that might be useful from another tool
- email handling:
https://github.com/client9/misspell/blob/master/notwords.go#L66
- host handling:
https://github.com/client9/misspell/blob/master/notwords.go#L71
- escape sequences:
https://github.com/client9/misspell/blob/master/notwords.go#L77
- urls: https://github.com/client9/misspell/blob/master/url.go
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#288 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAPVMX4FZVRX3MQI5B6PQHLTTJF35ANCNFSM464JUMBQ>
.
|
Even worse, I found it mangles go get urls for people who have intentional typos in their usernames. This breaks the repo. Furthermore, that regex may not catch it. Here is a diff in a go repo I tried this on.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tried to apply this automatically to some repos and it tried to fix some URLs. Obviously, that won't work if the original URL has a typo and the URL is not under your control. Absolute HTTPS URLs should not be changed or at least there should be an option to disable the changing of them.
The text was updated successfully, but these errors were encountered: