Skip to content

Commit

Permalink
remove space in regex (#5675)
Browse files Browse the repository at this point in the history
  • Loading branch information
deeleeramone authored Nov 7, 2023
1 parent da3cbb7 commit 1be94c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openbb_terminal/stocks/screener/screener_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"*)"

Expand Down

0 comments on commit 1be94c5

Please sign in to comment.