We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c26cad commit 97d679cCopy full SHA for 97d679c
pyscraper/new_hansard.py
@@ -979,7 +979,7 @@ def parse_time(self, tag):
979
time_txt = u''.join(tag.xpath('.//text()'))
980
if time_txt == '':
981
return
982
- matches = re.match('(\d+)(?:[:.](\d+))?[\xa0\s]*(am|pm)', time_txt)
+ matches = re.match('(\d+)(?:[:.\n](\d+))?[\xa0\s]*(am|pm)', time_txt)
983
if matches:
984
hours = int(matches.group(1))
985
minutes = int(matches.group(2) or 0)
0 commit comments