mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 23:42:23 -04:00
Fix whitespace in write_tag and parser/whitespac0
This commit is contained in:
parent
3949996728
commit
836977aac8
2 changed files with 2 additions and 2 deletions
|
@ -188,7 +188,7 @@ fn group_inner(input: &str) -> IResult<&str, Vec<Node>> {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn whitespace0(s: &str) -> IResult<&str, Vec<char>> {
|
fn whitespace0(s: &str) -> IResult<&str, Vec<char>> {
|
||||||
many0(one_of(" \u{3000}\t\n"))(s)
|
many0(one_of(" \u{3000}"))(s)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Optional leading space, then a (negated) group or text
|
/// Optional leading space, then a (negated) group or text
|
||||||
|
|
|
@ -201,7 +201,7 @@ impl SqlWriter<'_> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
OptionalRe::Re(s) => {
|
OptionalRe::Re(s) => {
|
||||||
if s == "*" {
|
if s == r"\S*" {
|
||||||
write!(self.sql, "true").unwrap();
|
write!(self.sql, "true").unwrap();
|
||||||
} else {
|
} else {
|
||||||
let re = format!("(?i).* {} .*", s);
|
let re = format!("(?i).* {} .*", s);
|
||||||
|
|
Loading…
Reference in a new issue