diff options
author | James Maslek <jmaslek11@gmail.com> | 2023-08-21 16:55:58 -0400 |
---|---|---|
committer | James Maslek <jmaslek11@gmail.com> | 2023-08-21 16:55:58 -0400 |
commit | ceb91d15a61ef4ab4d4d102293d2a7b8a15ed9bb (patch) | |
tree | e2acbc3e46da22647d9557793567de9ce783da67 | |
parent | 88e09ce302573b1bc1b3f8de6e87f09784e0a70c (diff) | |
parent | 144c59ccae878fc28e4030d7a8be1e7e1394b6ca (diff) |
Merge branch 'develop' of https://github.com/OpenBB-finance/OpenBBTerminal into develop
-rw-r--r-- | openbb_terminal/routine_functions.py | 2 | ||||
-rw-r--r-- | openbb_terminal/terminal_controller.py | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/openbb_terminal/routine_functions.py b/openbb_terminal/routine_functions.py index 0c0e05761ca..327ce81292b 100644 --- a/openbb_terminal/routine_functions.py +++ b/openbb_terminal/routine_functions.py @@ -246,7 +246,7 @@ def parse_openbb_script( foreach_loop_found = True # Regular expression pattern to match variables starting with $ - pattern = r"(?<!\$)(\$(\w+)(\[[^]]*\])?)(?![^\[]*\])" + pattern = r"(?<!\$)(\$(\w+)(\[[^\]]*\])?)(?=(?:[^\]]*\]*))" # Find all matches of the pattern in the line matches: Optional[List[Match[str]]] = re.findall(pattern, line) diff --git a/openbb_terminal/terminal_controller.py b/openbb_terminal/terminal_controller.py index 652c1f95b68..c92261eaed6 100644 --- a/openbb_terminal/terminal_controller.py +++ b/openbb_terminal/terminal_controller.py @@ -632,6 +632,7 @@ class TerminalController(BaseController): ) parser.add_argument( "--file", + "-f", help="The path or .openbb file to run.", dest="file", required="-h" not in other_args |