Skip to content

Commit

Permalink
Make number dot optional and name must only be non-numeric
Browse files Browse the repository at this point in the history
  • Loading branch information
delenamalan committed Mar 25, 2020
1 parent 48aafe0 commit 234984a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions za_parliament_scrapers/questions.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ class QuestionAnswerScraper(object):
QUESTION_RE = re.compile(
r"""
(?P<intro>
(?:(?P<number1>\d+)\.?\s+)? # Question number
(?P<askedby>[-a-zA-Z\s]+?) # Name of question asker
(?:(?P<number1>\d+)\.?[ \t]?)? # Question number
(?P<askedby>[a-zA-Z]+[-a-zA-Z ]+?) # Name of question asker
\s*\((?P<party>[-\w\s]+)\)?
\s+(?:to\s+ask|asked)\s+the\s+
(?P<questionto>[-\w\s(),:.]+)[:.]
Expand Down

0 comments on commit 234984a

Please sign in to comment.