Eliot0110 commited on
Commit
5696e91
·
1 Parent(s): 9419332

fix: symbol

Browse files
Files changed (1) hide show
  1. modules/info_extractor.py +1 -1
modules/info_extractor.py CHANGED
@@ -777,7 +777,7 @@ class InfoExtractor:
777
  break
778
 
779
  # 处理纯数字token(需要查看上下文)
780
- if not amount and re.match(r'^\d+(?:\.\d+)?', token):
781
  number = float(token)
782
 
783
  # 检查前面的token是否有预算相关词汇
 
777
  break
778
 
779
  # 处理纯数字token(需要查看上下文)
780
+ if not amount and re.match(r'^\d+(?:\.\d+)?$', token):
781
  number = float(token)
782
 
783
  # 检查前面的token是否有预算相关词汇