Closed JeroenDeDauw closed 3 years ago
Could you please specify which API method you use and observe invalid outcome? What is meant by 'interpreted as {0..1983}'
And one more thing: $parser->parse({ ..1983})
doesn't accept this value at all and throws Invalid edtf format
exception (because of spaces). Is it acceptable behaviour?
And one more thing:
$parser->parse({ ..1983})
doesn't accept this value at all and throwsInvalid edtf format
exception (because of spaces). Is it acceptable behaviour?
Are you saying that is the current behavior? It does not seem to be, as per the screenshot. Ideally { ..1983}
is understood to be {..1983}
, though if an exception is thrown when the space is there, that is also fine.
Yes, exactly. That's the current behavior. I am not sure how the data presented on the screenshot is built, but I think it doesn't throws the exception, because it goes only through Humanizer which doesn't trigger Parser's parse
method
Thanks for the explanation and the screenshot. Now it's clear that it's about the wrong humanization
@chaudbak so you can fix this now right?
{ ..1983}
is currently incorrectly interpreted as{0..1983}
{ ..1983}
should be interpreted as{..1983}