This commit is contained in:
deadsmond 2019-10-28 20:36:18 +01:00
parent 9a5030cd8c
commit 387527eabc

View File

@ -7,7 +7,11 @@ def is_number(test):
result = re.match(pattern, test) result = re.match(pattern, test)
if result: if result:
return test.split(' ')[-1] test = test.split(' ')
if len(test[0]) < 2 or len(test[0]) < 2:
return "<NONE>"
else:
return test[1]
else: else:
return "<NONE>" return "<NONE>"