Fwd P/E regex fix (#5273)

This commit is contained in:
Danglewood
2023-08-03 12:56:44 -07:00
committed by GitHub
parent 373c4f1ea7
commit d575c5d52a

View File

@@ -269,7 +269,7 @@ class EconomyController(BaseController):
See `BaseController.parse_input()` for details.
"""
# Filtering out sorting parameters with forward slashes like P/E
sort_filter = r"((\ -s |\ --sortby ).*?(P\/E|Fwd P\/E|P\/S|P\/B|P\/C|P\/FCF)*)"
sort_filter = r"((\ -s |\ --sortby ).*?(P\/E|Fwd|P\/E|P\/S|P\/B|P\/C|P\/FCF)*)"
custom_filters = [sort_filter]