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