summaryrefslogtreecommitdiffstats
path: root/app/notification_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/notification_test.go')
-rw-r--r--app/notification_test.go52
1 files changed, 25 insertions, 27 deletions
diff --git a/app/notification_test.go b/app/notification_test.go
index 1d5c82405..e59ba35d8 100644
--- a/app/notification_test.go
+++ b/app/notification_test.go
@@ -168,40 +168,38 @@ func TestGetExplicitMentionsAtHere(t *testing.T) {
"here": false,
"@here": true,
" @here ": true,
- "\t@here\t": true,
"\n@here\n": true,
- // "!@here!": true,
- // "@@here@": true,
- // "#@here#": true,
- // "$@here$": true,
- // "%@here%": true,
- // "^@here^": true,
- // "&@here&": true,
- // "*@here*": true,
- "(@here(": true,
- ")@here)": true,
- // "-@here-": true,
- // "_@here_": true,
- // "=@here=": true,
+ "!@here!": true,
+ "#@here#": true,
+ "$@here$": true,
+ "%@here%": true,
+ "^@here^": true,
+ "&@here&": true,
+ "*@here*": true,
+ "(@here(": true,
+ ")@here)": true,
+ "-@here-": true,
+ "_@here_": false, // This case shouldn't mention since it would be mentioning "@here_"
+ "=@here=": true,
"+@here+": true,
"[@here[": true,
"{@here{": true,
"]@here]": true,
"}@here}": true,
"\\@here\\": true,
- // "|@here|": true,
- ";@here;": true,
- ":@here:": true,
- // "'@here'": true,
- // "\"@here\"": true,
- ",@here,": true,
- "<@here<": true,
- ".@here.": true,
- ">@here>": true,
- "/@here/": true,
- "?@here?": true,
- // "`@here`": true,
- // "~@here~": true,
+ "|@here|": true,
+ ";@here;": true,
+ ":@here:": true,
+ "'@here'": true,
+ "\"@here\"": true,
+ ",@here,": true,
+ "<@here<": true,
+ ".@here.": true,
+ ">@here>": true,
+ "/@here/": true,
+ "?@here?": true,
+ "`@here`": false, // This case shouldn't mention since it's a code block
+ "~@here~": true,
}
for message, shouldMention := range cases {