Actions
Defect #39553
closedMention notification is not sent (MENTION_PATTERN / LINKS_RE inconsistency)
Defect #39553:
Mention notification is not sent (MENTION_PATTERN / LINKS_RE inconsistency)
Status:
Closed
Priority:
Normal
Assignee:
Category:
Email notifications
Target version:
Resolution:
Fixed
Affected version:
Description
Hi,
When I add an issue comment
where login is a valid login and there is no newline at the end of the comment, the mention is highlighted in the issue history, but no notification is sent to the user.
This is because both, Redmine::Acts::Mentionable::InstanceMethods::MENTION_PATTERN and ApplicationHelper::LINKS_RE, require a character after the exclamation mark, but only LINKS_RE (used in ApplicationHelper#parse_redmine_links) finds additional characters, namely the </p>, which is added earlier when the comment is converted to HTML.
MENTION_PATTERN should handle the case that [[:punct:]] is the at end of the string.
Thanks,
Thomas
Actions