Files
wroberts-pytimeparse/pytimeparse
dualfroz a0b5007d40 fix: reject stray pipe in sign by using [+-] character class
Inside a character class '|' is a literal, so [+|-] matched '+', '-', or
'|'. A leading pipe was captured as a sign and stripped, letting malformed
input like '|5m' parse to 300 instead of returning None. Restrict the
class to the two intended sign characters.
2026-09-04 22:00:22 +02:00
..