In case you want a workaround while this is fixed, I have made the following in a "plugin" to fix it here:
Redmine::Acts::Mentionable::InstanceMethods.module_evaldodefscan_for_mentioned_users(content)return[]ifcontent.nil?# remove quoted textcontent=content.gsub(%r{\r\n(?:\>\s)+(.*?)\r\n}m,'')text_formatting=Setting.text_formatting# Remove text wrapped in pre tags based on text formattingcasetext_formattingwhen'textile'content=content.gsub(%r{<pre>(.*?)</pre>}m,'')when'markdown','common_mark'content=content.gsub(%r{(~~~|```)(.*?)(~~~|```)}m,'')endusers=content.scan(MENTION_PATTERN).flattenendMENTION_PATTERN=/
(?:^|\W) # beginning of string or non-word char
@((?>[a-z0-9][@\.a-z0-9-]*)) # @username
(?!\/) # without a trailing slash
(?=
\.+[ \t\W]| # dots followed by space or non-word character
\.+$| # dots at end of line
[^0-9a-zA-Z_.]| # non-word character except dot
$ # end of line
)
/ixend
This works here, but I have no idea if there are some quirky edge-cases where it might break. You can either make a plugin with it, or just patch the lib/redmine/acts/mentionable file.