From 534fc8c41d761272182bf3dd9a52c9934cd7ec4e Mon Sep 17 00:00:00 2001 From: Danglewood <85772166+deeleeramone@users.noreply.github.com> Date: Mon, 6 Nov 2023 16:27:40 -0800 Subject: [PATCH] remove space in regex --- 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"*)"