A pipe passed for a sign
The sign pattern was [+|-], and inside a character class | is a plain character. parse('|5m') returned 300 and parse('|1:24') returned 84 instead of rejecting the bad input.
A character class with only plus and minus
The pattern is now [+-], so the pipe stays in the string, no time format matches it and timeparse returns None. Tests cover |5m, | 5m and |1:24.