fix(matrix): satisfy golines in mention regex test
This commit is contained in:
parent
6e16ac7f68
commit
fb2bfe4b3c
1 changed files with 4 additions and 1 deletions
|
|
@ -21,7 +21,10 @@ func TestMatrixLocalpartMentionRegexp(t *testing.T) {
|
||||||
}{
|
}{
|
||||||
{text: "@picoclaw hello", want: true},
|
{text: "@picoclaw hello", want: true},
|
||||||
{text: "hi @picoclaw:matrix.org", 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},
|
{text: "mail test@example.com", want: false},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue