Skip to content

Commit

Permalink
[SP] Proxy vote might have square brackets.
Browse files Browse the repository at this point in the history
  • Loading branch information
TheyWorkForYou Live CVS User committed May 22, 2024
1 parent 38c1fba commit c2bc679
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyscraper/sp_2024/resolvenames.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,13 +310,13 @@ def list_all_dates(self):
, # ... then a comma
\s* # ... and some greedy whitespace
(?P<first_names>[^,\(\)0-9:]*?) # ... first names, a minimal match of any characters
\s*\(\(? # ... an arbitrary amout of whitespace and an open banana
\s*\(\(? # ... an arbitrary amount of whitespace and an open banana
# (with possibly an extra open banana)
(?P<constituency>[^\(\)0-9:]*?) # ... constituency, a minimal match of any characters
\)\s*\( # ... close banana, whitespace, open banana
(?P<party>\D*?) # ... party, a minimal match of any characters
\) # ... close banana
(?:\s*Proxy[ ]vote[ ]cast[ ]by.*?)? # ... optional proxy vote text
\)? # ... close banana (might be missing!)
(?:\s*\[?Proxy[ ]vote[ ]cast[ ]by.*?\]?)? # ... optional proxy vote text
$ # ... end of the string
""",
re.VERBOSE,
Expand Down

0 comments on commit c2bc679

Please sign in to comment.