Skip to content

Conversation

@nickvergessen
Copy link
Member

The previous regex didn't correctly match users with . ' or -

Signed-off-by: Joas Schilling [email protected]

@nickvergessen
Copy link
Member Author

Ref nextcloud/spreed#5041

Copy link
Member

@danxuliu danxuliu left a comment

Choose a reason for hiding this comment

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

Tested and notifications when a comment is something like Hi @user0 and @user0-2 now work 👍

Mentioning a user using quotes does not work, though. But id did not work before even for users with spaces in the name (Hello @""user0 1"" is shown in the comment), so it might be something for a different pull request.

Edit: clarification, it does not work when rendered in the comments app. But it does in the notification.

@rullzer
Copy link
Member

rullzer commented Feb 1, 2021

Linter says no

@nickvergessen nickvergessen added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Feb 2, 2021
@rullzer rullzer modified the milestones: Nextcloud 21, Nextcloud 22 Feb 2, 2021
@rullzer
Copy link
Member

rullzer commented Feb 2, 2021

Master is Nextcloud 22 now.
If this should go into 21 it should be backported.

@nickvergessen
Copy link
Member Author

/backport to stable21

The previous regex didn't correctly match users with . ' or -

Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
@rullzer rullzer force-pushed the bugfix/noid/mention-match-improvements branch from 46e82aa to 9803242 Compare February 6, 2021 12:07
@rullzer rullzer merged commit d5dea10 into master Feb 11, 2021
@rullzer rullzer deleted the bugfix/noid/mention-match-improvements branch February 11, 2021 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to be released and/or waiting for tests to finish bug feature: comments

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants