Skip to content
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 apply urlize to @a@b #1870

Closed
wants to merge 1 commit into from
Closed

Conversation

nabijaczleweli
Copy link
Contributor

@nabijaczleweli nabijaczleweli commented Jul 20, 2023

This chases https://lists.sr.ht/~sircmpwn/sr.ht-dev/%3Clelaromu5mjgibe6jywrc2iwoikon2piwo2h34rcsyjhbyge5y%40fdtowru7pv5e%3E and thus https://101010.pl/@mcc@mastodon.social/110742090990556162

It's a common way to spell both "a user of some site" but also universal in the mastodon world. None of these are valid e-mail addresses (especially since urlize makes @eater@cijber.social into <a href="mailto:@eater@cijber.social">@eater@cijber.social</a> which straight-up just isn't really a valid e-mail address anyway).

Checklist:

  • Add tests that demonstrate the correct behavior of the change. Tests should fail without the change.
  • Add or update relevant docs, in the docs folder and in code. – I don't think this is needed, since @a@b isn't really a valid email anyway and it was erroneously accepted
  • Add an entry in CHANGES.rst summarizing the change and linking to the issue.
  • Add .. versionchanged:: entries in any relevant code docs. – Likewise
  • Run pre-commit hooks and fix any issues.
  • Run pytest and tox, no tests failed.

This chases
  https://lists.sr.ht/~sircmpwn/sr.ht-dev/%3Clelaromu5mjgibe6jywrc2iwoikon2piwo2h34rcsyjhbyge5y%40fdtowru7pv5e%3E
and thus
  https://101010.pl/@mcc@mastodon.social/110742090990556162

It's a common way to spell both "a user of some site" but also universal
in the mastodon world. None of these are valid e-mail addresses
(especially since urlize makes @eater@cijber.social into
  <a href="mailto:@eater@cijber.social">@eater@cijber.social</a>
which straight-up just isn't really a valid e-mail address anyway).
@nabijaczleweli

This comment was marked as off-topic.

@davidism davidism changed the title urlize: "@a@b" isn't a valid e-mail, don't mailto:ise it don't apply urlize to @a@b Dec 20, 2024
@davidism davidism added this to the 3.1.5 milestone Dec 20, 2024
@davidism davidism changed the base branch from main to stable December 20, 2024 04:38
@davidism davidism changed the base branch from stable to main December 20, 2024 04:38
@davidism
Copy link
Member

It looks like you didn't enable "allow pushes from maintainers" for this PR, so I can't update it to prepare for merge. I'll open a new PR to continue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants