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

Modify mentions regex #2421

Merged
merged 1 commit into from
Mar 27, 2024
Merged

Modify mentions regex #2421

merged 1 commit into from
Mar 27, 2024

Conversation

umairkhannn
Copy link
Member

@umairkhannn umairkhannn commented Mar 26, 2024

Email not screwing up now, have modified the mentions regex. Although the end part of email is considered as link by sanitize() method (created a ticket for this issue in backlog)

Image

@umairkhannn umairkhannn requested a review from arpee March 26, 2024 08:01
@umairkhannn umairkhannn changed the title Modify mentions regex to exlude emails Modify mentions regex Mar 26, 2024
@umairkhannn umairkhannn linked an issue Mar 26, 2024 that may be closed by this pull request
Copy link
Member

@arpee arpee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't think this approach is the right one.

We should update the sanitize system to ignore potential email address - not treat them as links...

We can simply have the regex nope out of treating the text if there is an @ in the string.

for saito mentions - they should only do anything if the string starts with an @...

@arpee arpee merged commit 5b622e3 into staging Mar 27, 2024
@arpee arpee deleted the mentions/regex branch March 27, 2024 12:37
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.

Saito Mentions over agressive in tagging "@"
2 participants