Fix repeater type.
I had Cumulative and CatchUp backwards.
This commit is contained in:
parent
bc3224be7a
commit
5c929ffc13
@ -0,0 +1,7 @@
|
|||||||
|
# All the marks for repeater and warning delay
|
||||||
|
[1970-01-01 Thu 8:15-13:15foo +1h -2h]
|
||||||
|
[1970-01-01 Thu 8:15-13:15foo ++1d -2d]
|
||||||
|
[1970-01-01 Thu 8:15-13:15foo .+1w -2w]
|
||||||
|
[1970-01-01 Thu 8:15-13:15foo +1m --2m]
|
||||||
|
[1970-01-01 Thu 8:15-13:15foo ++1y --2y]
|
||||||
|
[1970-01-01 Thu 8:15-13:15foo .+1d --2h]
|
@ -534,8 +534,8 @@ fn repeater<'b, 'g, 'r, 's>(
|
|||||||
// ++ for catch-up type
|
// ++ for catch-up type
|
||||||
// .+ for restart type
|
// .+ for restart type
|
||||||
let (remaining, repeater_type) = alt((
|
let (remaining, repeater_type) = alt((
|
||||||
map(tag("++"), |_| RepeaterType::Cumulative),
|
map(tag("++"), |_| RepeaterType::CatchUp),
|
||||||
map(tag("+"), |_| RepeaterType::CatchUp),
|
map(tag("+"), |_| RepeaterType::Cumulative),
|
||||||
map(tag(".+"), |_| RepeaterType::Restart),
|
map(tag(".+"), |_| RepeaterType::Restart),
|
||||||
))(input)?;
|
))(input)?;
|
||||||
let (remaining, value) = digit1(remaining)?;
|
let (remaining, value) = digit1(remaining)?;
|
||||||
|
Loading…
Reference in New Issue
Block a user