This commit is contained in:
deadsmond 2019-10-28 20:38:34 +01:00
parent 387527eabc
commit c744d948fb

View File

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