diff --git a/openbb_terminal/parent_classes.py b/openbb_terminal/parent_classes.py index e5ec6945bc9..11d31d2a52f 100644 --- a/openbb_terminal/parent_classes.py +++ b/openbb_terminal/parent_classes.py @@ -1004,8 +1004,7 @@ class BaseController(metaclass=ABCMeta): # Check if title has a valid format title = " ".join(ns_parser.name) if ns_parser.name else "" - # To this day, the reason why /^[a-zA-Z0-9\s]+$/ does not work is unknown - pattern = re.compile(r"^[a-zA-Z0-9\s]+(?:[a-zA-Z0-9\s]+)*$") + pattern = re.compile(r"^[a-zA-Z0-9\s]+$") if not pattern.match(title): console.print( f"[red]Title '{title}' has invalid format. Please use only digits, characters and whitespaces.[/]"