Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the regex
NUMBER_PATTERN
in _input_base.py (#72)
The pipe `|` character has no special meaning inside a character set and will be matched literally. See Python docs: https://docs.python.org/3/library/re.html#regular-expression-syntax `[]`: Used to indicate a set of characters. In a set: Special characters lose their special meaning inside sets. For example, `[(+*)]` will match any of the literal characters `'('`, `'+'`, `'*'`, or `')'`. `[\.]` is indeed redundant, `\.` is sufficient.
- Loading branch information