Skip to content

Improve mention matches - #25378

Merged
rullzer merged 4 commits into
masterfrom
bugfix/noid/mention-match-improvements
Feb 11, 2021
Merged

Improve mention matches#25378
rullzer merged 4 commits into
masterfrom
bugfix/noid/mention-match-improvements

Conversation

@nickvergessen

Copy link
Copy Markdown
Member

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

Signed-off-by: Joas Schilling coding@schilljs.com

@nickvergessen

Copy link
Copy Markdown
MemberAuthor

Ref nextcloud/spreed#5041

@danxuliudanxuliu left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
Member

Linter says no

@nickvergessennickvergessen 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
@rullzerrullzer modified the milestones: Nextcloud 21, Nextcloud 22Feb 2, 2021
@rullzer

Copy link
Copy Markdown
Member

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

@nickvergessen

Copy link
Copy Markdown
MemberAuthor

/backport to stable21

The previous regex didn't correctly match users with . ' or -
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
@rullzer
rullzerforce-pushed the bugfix/noid/mention-match-improvements branch from 46e82aa to 9803242CompareFebruary 6, 2021 12:07
@rullzer
rullzer merged commit d5dea10 into masterFeb 11, 2021
@rullzer
rullzer deleted the bugfix/noid/mention-match-improvements branch February 11, 2021 09:33
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to releaseReady to be released and/or waiting for tests to finishbugfeature: comments

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@nickvergessen@rullzer@danxuliu