Skip to content

Commit

Permalink
Merge pull request #301 from vplan-fr/main
Browse files Browse the repository at this point in the history
add some excluded chars to sep in form regex
  • Loading branch information
Belissimo-T authored Mar 25, 2024
2 parents 9e109ab + da8e484 commit cd36bd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/vplan_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
_parse_form_pattern = re.compile(
r"(?<!\S)(?:"
r"(?P<major>\d{1,2}(?!\d)|[A-Za-zÄÖÜäöüß]+(?![A-Za-zÄÖÜäöüß]))"
r"(?P<sep> |[/._]|[^A-Za-zÄÖÜäöüß0-9() \n]?)(?:(?<! ) )?"
r"(?P<sep> |[/._]|[^A-Za-zÄÖÜäöüß0-9():;\[\]{} \n]?)(?:(?<! ) )?"
r"(?P<minor>"
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}))*"
Expand All @@ -20,7 +20,7 @@
_loose_parse_form_pattern = re.compile(
r"(?<!\S)(?:"
r"(?P<major>\d{1,2}(?!\d)|[A-Za-zÄÖÜäöüß]+(?![A-Za-zÄÖÜäöüß]))"
r"(?P<sep> |[/._]|[^A-Za-zÄÖÜäöüß0-9() \n]?)(?:(?<! ) )?"
r"(?P<sep> |[/._]|[^A-Za-zÄÖÜäöüß0-9():;\[\]{} \n]?)(?:(?<! ) )?"
r"(?P<minor>"
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}))*"
Expand Down

0 comments on commit cd36bd1

Please sign in to comment.