mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 20:42:26 +00:00
Fix bug that doesn't allow to iterate through tickers with a dot (#5489)
This commit is contained in:
@@ -411,7 +411,7 @@ def parse_openbb_script( # noqa: PLR0911,PLR0912
|
||||
for line in lines_with_vars_replaced:
|
||||
# Found 'foreach' header associated with loop
|
||||
match = re.search(
|
||||
r"foreach \$\$([A-Za-z\_]+) in ([A-Za-z0-9,-]+)", line, re.IGNORECASE
|
||||
r"foreach \$\$([A-Za-z\_]+) in ([A-Za-z0-9,-.]+)", line, re.IGNORECASE
|
||||
)
|
||||
if match:
|
||||
varname = match.group(1)
|
||||
|
||||
Reference in New Issue
Block a user