updated like_num

This commit is contained in:
Jim Geovedi 2017-07-29 17:44:46 +07:00
parent 3cca4ed798
commit 7d96d477ea

View File

@ -31,8 +31,8 @@ def like_num(text):
if text in _num_words: if text in _num_words:
return True return True
if text.count('-') == 1: if text.count('-') == 1:
pre, num = text.split('-') _, num = text.split('-')
if pre in ['Ke', 'ke'] and (num.isdigit() or num in _num_words): if num.isdigit() or num in _num_words:
return True return True
return False return False