Fix whitespace in write_tag and parser/whitespac0
This commit is contained in:
parent
3949996728
commit
836977aac8
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user