Bugfix - Allow {time, duration}::from::* to be parsed (#1886)
This commit is contained in:
parent
c295cb0509
commit
3f3b2248b3
1 changed files with 2 additions and 2 deletions
|
@ -384,7 +384,7 @@ fn function_duration(i: &str) -> IResult<&str, &str> {
|
|||
tag("weeks"),
|
||||
tag("years"),
|
||||
preceded(
|
||||
tag("from"),
|
||||
tag("from::"),
|
||||
alt((
|
||||
tag("days"),
|
||||
tag("hours"),
|
||||
|
@ -554,7 +554,7 @@ fn function_time(i: &str) -> IResult<&str, &str> {
|
|||
tag("week"),
|
||||
tag("yday"),
|
||||
tag("year"),
|
||||
preceded(tag("from"), alt((tag("micros"), tag("millis"), tag("secs"), tag("unix")))),
|
||||
preceded(tag("from::"), alt((tag("micros"), tag("millis"), tag("secs"), tag("unix")))),
|
||||
))(i)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue