From da8e4847d0401525cb5b9890b4151006e223ae92 Mon Sep 17 00:00:00 2001 From: Belissimo_T Date: Mon, 25 Mar 2024 20:04:57 +0100 Subject: [PATCH] add some excluded chars to sep in form regex --- backend/vplan_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/vplan_utils.py b/backend/vplan_utils.py index 106be55..76d0f0e 100644 --- a/backend/vplan_utils.py +++ b/backend/vplan_utils.py @@ -10,7 +10,7 @@ _parse_form_pattern = re.compile( r"(?\d{1,2}(?!\d)|[A-Za-zÄÖÜäöüß]+(?![A-Za-zÄÖÜäöüß]))" - r"(?P |[/._]|[^A-Za-zÄÖÜäöüß0-9() \n]?)(?:(? |[/._]|[^A-Za-zÄÖÜäöüß0-9():;\[\]{} \n]?)(?:(?" r"(?:\d{1,2}[A-Za-zÄÖÜäöüß]?|[A-Za-zÄÖÜäöüß]+\d{0,2})" r"(?:,(?:\d{1,2}[A-Za-zÄÖÜäöüß]?|[A-Za-zÄÖÜäöüß]+\d{0,2}))*" @@ -20,7 +20,7 @@ _loose_parse_form_pattern = re.compile( r"(?\d{1,2}(?!\d)|[A-Za-zÄÖÜäöüß]+(?![A-Za-zÄÖÜäöüß]))" - r"(?P |[/._]|[^A-Za-zÄÖÜäöüß0-9() \n]?)(?:(? |[/._]|[^A-Za-zÄÖÜäöüß0-9():;\[\]{} \n]?)(?:(?" r"(?:\d{1,2}[A-Za-zÄÖÜäöüß]?|[A-Za-zÄÖÜäöüß]+\d{0,2})" r"(?:,(?:\d{1,2}[A-Za-zÄÖÜäöüß]?|[A-Za-zÄÖÜäöüß]+\d{0,2}))*"