chore: Change the notification text for mention notification type (#2534)

This commit is contained in:
Muhsin Keloth
2021-06-29 14:32:57 +05:30
committed by GitHub
parent 044b6872a4
commit 8027c69c1c
5 changed files with 44 additions and 4 deletions

View File

@@ -5,4 +5,5 @@ module RegexHelper
# valid unicode letter, unicode number, underscore, hyphen
# shouldn't start with a underscore or hyphen
UNICODE_CHARACTER_NUMBER_HYPHEN_UNDERSCORE = Regexp.new('\A[\p{L}\p{N}]+[\p{L}\p{N}_-]+\Z')
MENTION_REGEX = Regexp.new('\[(@[\w_. ]+)\]\(mention://(?:user|team)/\d+/(.*?)+\)')
end