Spaces:
Sleeping
Sleeping
fix: symbol
Browse files
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+)
|
| 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是否有预算相关词汇
|