Closed keenahn closed 2 years ago
Same with PD
or even just P
nesh> parse('PD')
{ weeks: 0,
years: 0,
months: 0,
days: 0,
hours: 0,
minutes: 0,
seconds: 0 }
nesh> parse('P')
{ weeks: 0,
years: 0,
months: 0,
days: 0,
hours: 0,
minutes: 0,
seconds: 0 }
These should throw IMO
I agree that there is a bug here. Or two:
=> Any string containing a "P" is considered a valid ISO duration, which is obviously not true (is "API" a valid duration?).