From 1be94c5b735ce2dd5120ef83975290c93ac89e02 Mon Sep 17 00:00:00 2001 From: Danglewood <85772166+deeleeramone@users.noreply.github.com> Date: Tue, 7 Nov 2023 12:40:00 -0800 Subject: [PATCH] remove space in regex (#5675) --- openbb_terminal/stocks/screener/screener_controller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openbb_terminal/stocks/screener/screener_controller.py b/openbb_terminal/stocks/screener/screener_controller.py index ec40c1d2c07f..a0b2d066c39d 100644 --- a/openbb_terminal/stocks/screener/screener_controller.py +++ b/openbb_terminal/stocks/screener/screener_controller.py @@ -96,8 +96,8 @@ def parse_input(self, an_input: str) -> List: See `BaseController.parse_input()` for details. """ # Filtering out sorting parameters with forward slashes like P/E - f0 = r"(p\/e|fwd p\/e|p\/s|p\/b|p\/c|p\/fcf)" - f1 = r"(P\/E|Fwd P\/E|P\/S|P\/B|P\/C|P\/FCF)" + f0 = r"(p\/e|fwdp\/e|p\/s|p\/b|p\/c|p\/fcf)" + f1 = r"(P\/E|FwdP\/E|P\/S|P\/B|P\/C|P\/FCF)" sort_filter = r"((\ -s |\ --sort ).*?" + r"(" + f0 + r"|" + f1 + r")" + r"*)"