Add more test case in test_author_name_filter

This commit is contained in:
2022-06-21 06:03:18 +00:00
committed by GitHub
parent 6903a1fe8d
commit dc12324c9b

View File

@@ -172,4 +172,9 @@ fn test_author_name_filter() {
);
assert_eq!(l.filter("sss@ss@お仕事募集中"), "sss@ss");
assert_eq!(l.filter("sss🌸ss🌸お仕事募集中"), "sss🌸ss");
let l = AuthorNameFilter::from_json(
json::array![{"type": "regex", "rule": "(?<=^桃豆こまもち).*"}],
)
.unwrap();
assert_eq!(l.filter("桃豆こまもち🍡日曜西ま11a"), "桃豆こまもち");
}