Commit 4bef8d18 by lichenggang

数量加上pcs

parent a4e9ee50
Showing with 1 additions and 1 deletions
......@@ -14,7 +14,7 @@ class TxtPredict(BasePredictor):
"""
if str(kw).startswith('0'):
return False
return re.match(r'(\d+|\d+(\.\d+))($|(K)|[个十百千万])$', kw, re.M | re.I)
return re.match(r'(\d+|\d+(\.\d+))($|(K)|[个十百千万]|pcs)$', kw, re.M | re.I)
def pre_deal(self, li: list):
data = []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment