You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @adbar. Thanks for this awesome library. While working on my port I noticed a strange issue with several regexes that don't give me the expected output.
First is COPYRIGHT_PATTERN which currently defined like this:
I expected the COPYRIGHT_PATTERN to capture 2020, however right now it's capture the 1999 as can be seen here. So what do you think? Is that the expected behavior?
Next is TIMESTAMP_PATTERN which currently defined like this:
TIMESTAMP_PATTERN will only capture the last three while ignoring the first two as can be seen here. I believe it was a mistake since 1991-03-21T00:00:00 and 1995-07-23T00:00:00 are valid timestamps as well.
Thanks!
The text was updated successfully, but these errors were encountered:
RadhiFadlillah
changed the title
Possibly wrong copyright pattern?
Possibly wrong regex patterns?
Sep 16, 2024
Hi @adbar. Thanks for this awesome library. While working on my port I noticed a strange issue with several regexes that don't give me the expected output.
First is
COPYRIGHT_PATTERN
which currently defined like this:Given the following string:
I expected the
COPYRIGHT_PATTERN
to capture2020
, however right now it's capture the1999
as can be seen here. So what do you think? Is that the expected behavior?Next is
TIMESTAMP_PATTERN
which currently defined like this:Given the following string:
TIMESTAMP_PATTERN
will only capture the last three while ignoring the first two as can be seen here. I believe it was a mistake since1991-03-21T00:00:00
and1995-07-23T00:00:00
are valid timestamps as well.Thanks!
The text was updated successfully, but these errors were encountered: