Closed tarjelavik closed 1 year ago
Could you post full examples that fail for you? I understood this to mean that "/1960" fails, but this seems to work fine (see the test cases added in the commit above).
Sry, for the bad issue. I have created a PR now with failing test in first commit and a fix in the second. Unsure if this would have some side effects, but the other test are ok after the fix.
Landed in 4.4.2.
Thx, for the quick merge :-)!
Hi! I notice that if i try to add an interval with an unknown start it fails it the "end" is lower than 1970. Doing "../1960" works but has another meaning.
Looking at the code it seems like there is a missing check for
this.lower
beingnull
?https://github.com/inukshuk/edtf.js/blob/36f756fe295d94f9ad5bb8fd84200de5f2cb7b5c/src/interval.js#L93-L94