mirror of
https://github.com/lifegpc/pixiv_downloader.git
synced 2026-07-08 01:32:41 +08:00
update test
This commit is contained in:
@@ -178,7 +178,7 @@ fn test_author_name_filter() {
|
||||
.unwrap();
|
||||
assert_eq!(l.filter("桃豆こまもち🍡日曜西ま11a"), "桃豆こまもち");
|
||||
let l = AuthorNameFilter::from_json(
|
||||
json::array![{"type": "regex", "rule": "(.*(?=桃豆こまもち))?((?<=桃豆こまもち).*)?"}],
|
||||
json::array![{"type": "regex", "rule": "(.+(?=桃豆こまもち)|(?<=桃豆こまもち).+)"}],
|
||||
)
|
||||
.unwrap();
|
||||
assert_eq!(l.filter("桃豆こまもち🍡日曜西ま11a"), "桃豆こまもち");
|
||||
|
||||
Reference in New Issue
Block a user