Closed Zephyrkul closed 3 months ago
Regex101 link if you want to test the regex easily.
Minor something worth noting, I've intentionally created an edgematch
variation to re.search
to only match the timedelta at the beginning or end of the string as per the original intent of the code. That said, the new modified regex should make it possible to simply re.search
the string to reflect current behavior, while still fixing all the bugs mentioned in #6274. If whoever reviews would prefer the latter approach, let me know.
Description of the changes
Resolves #6274
minimum=
must be explicitly set toNone
forparse_timedelta
to permit negative timedeltas.t=
/time=
Have the changes in this PR been tested?
Yes