Skip to content

0.0.13

Choose a tag to compare

@tgbugs tgbugs released this 23 Nov 02:13
fix iso8601duration and postnatal-day parsing conflicts

the underlying issue was that AT_MOST_ONE will succeed on the empty
string, also added the AND combinator to make it simpler to express
cases where multiple parsers are incomplete when run alone but ensure
correctness when run together and allow far more compact expression
that e.g. writing out all the order dependent parser rules by hand

the postnatal-day parser will match the prefix of malformed durations,
but that is ok because there will be a non empty rest which can be
used to detect the failure case