fix(matrix): satisfy golines in mention regex test

This commit is contained in:
horsley
2026-03-08 10:53:45 +00:00
parent 6e16ac7f68
commit fb2bfe4b3c
+4 -1
View File
@@ -21,7 +21,10 @@ func TestMatrixLocalpartMentionRegexp(t *testing.T) {
}{
{text: "@picoclaw hello", want: true},
{text: "hi @picoclaw:matrix.org", want: true},
{text: "\u6b22\u8fce\u4e00\u4e0bpicoclaw\u5c0f\u9f99\u867e", want: false}, // historical false-positive case in PR #356
{
text: "\u6b22\u8fce\u4e00\u4e0bpicoclaw\u5c0f\u9f99\u867e",
want: false, // historical false-positive case in PR #356
},
{text: "mail test@example.com", want: false},
}