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
S
Description
My contributions to wroberts/pytimeparse: 3 commits, 1 merged PRs
44 KiB
0 Stars 1 Watchers 0 Forks
Languages
Python 100%