mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Remove special treatment of tag:none
This commit is contained in:
parent
f4ca01d1b0
commit
95285ef66d
1 changed files with 0 additions and 4 deletions
|
@ -195,9 +195,6 @@ impl SqlWriter<'_> {
|
|||
write!(self.sql, "false").unwrap();
|
||||
} else {
|
||||
match text {
|
||||
"none" => {
|
||||
write!(self.sql, "n.tags = ''").unwrap();
|
||||
}
|
||||
"*" => {
|
||||
write!(self.sql, "true").unwrap();
|
||||
}
|
||||
|
@ -761,7 +758,6 @@ mod test {
|
|||
vec![r"(?i).* o\S*n\*et%w%oth\Sre_e(::| ).*".into()]
|
||||
)
|
||||
);
|
||||
assert_eq!(s(ctx, "tag:none"), ("(n.tags = '')".into(), vec![]));
|
||||
assert_eq!(s(ctx, "tag:*"), ("(true)".into(), vec![]));
|
||||
|
||||
// state
|
||||
|
|
Loading…
Reference in a new issue