[bug fix]

This commit is contained in:
msincenselee 2020-06-10 21:50:04 +08:00
parent cf3ccfe3b8
commit f159b61057

View File

@ -74,7 +74,7 @@ def get_underlying_symbol(symbol: str):
p = re.compile(r"([A-Z]+)[0-9]+", re.I)
underlying_symbol = p.match(symbol)
if underlying_symbol is None or len(underlying_symbol) == 0:
if underlying_symbol is None:
return symbol
return underlying_symbol.group(1)