Skip to content

Comments

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

Open
meskolin wants to merge 1 commit intojaystack:masterfrom
meskolin:bugfix/time-parsing
Open

Support for parsing ISO 8601 duration format with only time component#26
meskolin wants to merge 1 commit intojaystack:masterfrom
meskolin:bugfix/time-parsing

Conversation

@meskolin
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant