jaystack / odata-v4-parser

OData v4 parser
38 stars 41 forks source link

Support for parsing ISO 8601 duration format with only time component #26

Open meskolin opened 2 years ago

meskolin commented 2 years ago

Currently Duration parsing is failing if duration only contains a time component, not a date component.

However, it is still a valid ISO 8601 duration if the string only has a time component, such as duration'PT2H'.

Modified primativeLiteral.ts to handle this case.