Fix whitespace in write_tag and parser/whitespac0

This commit is contained in:
RumovZ 2020-11-14 19:10:56 +01:00
parent 3949996728
commit 836977aac8
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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);