This commit is contained in:
deadsmond 2019-10-28 20:10:31 +01:00
parent 9b453cb0ff
commit 1969cd24c5

View File

@ -3,7 +3,7 @@ import sys
import re
def is_number(test):
pattern = re.compile(r'^\-?\d*[05]$')
pattern = re.compile(r'^\-?[1-9]*[05]$')
result = re.match(pattern, test)
if result: