From 40ae229494fce65fe638b32d89f896beee9bbb88 Mon Sep 17 00:00:00 2001 From: DidierRLopes Date: Thu, 28 Sep 2023 07:38:45 -0700 Subject: [PATCH] Fix bug that doesn't allow to iterate through tickers with a dot (#5489) --- openbb_terminal/routine_functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openbb_terminal/routine_functions.py b/openbb_terminal/routine_functions.py index f29cb58c1d4..5b2098b0612 100644 --- a/openbb_terminal/routine_functions.py +++ b/openbb_terminal/routine_functions.py @@ -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)