Skip to content

Commit

Permalink
Fix MI Scope Report to accept spaces in the scope output
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMillar-MOJ committed Nov 6, 2024
1 parent fd3265b commit f6322b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cla_backend/apps/reports/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -1084,7 +1084,7 @@ def _get_col_index(self, column_name):
def notes_to_dict(notes):
def get_categories_and_scope(user_selected_text):
items, scope = user_selected_text.split("Outcome: ")
scope = re.sub(r"\s+|\n", "", scope)
scope = re.sub(r"\s+", " ", scope).strip()
categories = []
for category in items.split("\n\n"):
if ": " in category:
Expand Down

0 comments on commit f6322b0

Please sign in to comment.