[bug fix]
This commit is contained in:
parent
cf3ccfe3b8
commit
f159b61057
@ -74,7 +74,7 @@ def get_underlying_symbol(symbol: str):
|
|||||||
p = re.compile(r"([A-Z]+)[0-9]+", re.I)
|
p = re.compile(r"([A-Z]+)[0-9]+", re.I)
|
||||||
underlying_symbol = p.match(symbol)
|
underlying_symbol = p.match(symbol)
|
||||||
|
|
||||||
if underlying_symbol is None or len(underlying_symbol) == 0:
|
if underlying_symbol is None:
|
||||||
return symbol
|
return symbol
|
||||||
|
|
||||||
return underlying_symbol.group(1)
|
return underlying_symbol.group(1)
|
||||||
|
Loading…
Reference in New Issue
Block a user