Closed ericthewizard closed 1 month ago
Eric, sorry I missed this ticket when you posted it back in January. Let me know if you are still wondering about this. Also I will check the behavior you describe, it sounds like a bug. If there is text after the last field, it should match something...
Definitely still wondering about it - have you had a chance to look into it? I haven't tried the most recent version yet, to see if it's still an issue.
I notice it doesn't check any of the non-component characters in between, so XX_199811900-199812000.gif will also match. I'm putting in code to check these as well.
This is fixed and will be released a little later this morning.
This is also updated in the Java and Python versions.
And also the JavaScript version.
For example - let’s say we have:
This works as expected, but when the filename has additional characters after the date, it still matches and extracts the times, e.g.,
If it includes additional characters before the date, it throws an exception:
Is there a way to check if a string matches the template exactly?
Thanks!