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>> {
many0(one_of(" \u{3000}\t\n"))(s)
many0(one_of(" \u{3000}"))(s)
}
/// Optional leading space, then a (negated) group or text

View File

@ -201,7 +201,7 @@ impl SqlWriter<'_> {
}
}
OptionalRe::Re(s) => {
if s == "*" {
if s == r"\S*" {
write!(self.sql, "true").unwrap();
} else {
let re = format!("(?i).* {} .*", s);