Closed mpcabd closed 6 years ago
Hi @mpcabd
Thanks for your contribution! I'm not sure if I understand you correctly, could you provide an example as use-case?
Thanks for using Text Pastry!
Hi @duydao,
Running days 2017-08-01 x5
with this configuration
{
"date_format": "%Y-%m-%d",
"parse_date_formats":
[
"%Y-%m-%d",
"%d.%m.%Y"
]
}
used not to work before my patch, it always generated starting from the current date instead of starting from the date I provided, that's because 2017-08-01
does not match the regex '^([\\d]{1,2}[\\.-/][\\d]{1,2}[\\.-/][\\d]{1,4}) ?(.+)?$'
, but I believe the regex is not needed anymore when you can use parse_date
.
any update on this? same issue for me
If the start date is in a different format than the one in the regex in line 904, the start date will not be taken, which is not correct, it should be taken and parsed from text.