mirror of
https://github.com/amtoaer/bili-sync.git
synced 2026-06-02 14:20:34 +08:00
feat: 视频规则部分,添加不区分大小写的“包含”过滤 (#559)
This commit is contained in:
@@ -16,6 +16,7 @@ impl Evaluatable<&str> for Condition<String> {
|
||||
match self {
|
||||
Condition::Equals(expected) => expected == value,
|
||||
Condition::Contains(substring) => value.contains(substring),
|
||||
Condition::IContains(substring) => value.to_lowercase().contains(&substring.to_lowercase()),
|
||||
Condition::Prefix(prefix) => value.starts_with(prefix),
|
||||
Condition::Suffix(suffix) => value.ends_with(suffix),
|
||||
Condition::MatchesRegex(_, regex) => regex.is_match(value),
|
||||
|
||||
Reference in New Issue
Block a user