Skip to content

Commit

Permalink
Fix missing r prefix on string with regex backslashes
Browse files Browse the repository at this point in the history
  • Loading branch information
JustAnotherArchivist committed Jun 24, 2022
1 parent d5b406b commit d72b519
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snscrape/modules/vkontakte.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def _localised_datetime(tz, *args, **kwargs):
_months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
_datePattern = re.compile(r'^(?P<date>today'
r'|yesterday'
r'|(?P<day1>\d+)\s+(?P<month1>' + '|'.join(_months) + ')(\s+(?P<year1>\d{4}))?'
r'|(?P<day1>\d+)\s+(?P<month1>' + '|'.join(_months) + r')(\s+(?P<year1>\d{4}))?'
r'|(?P<month2>' + '|'.join(_months) + r')\s+(?P<day2>\d+),\s+(?P<year2>\d{4})'
')'
r'\s+at\s+(?P<hour>\d+):(?P<minute>\d+)\s+(?P<ampm>[ap]m)$')
Expand Down

0 comments on commit d72b519

Please sign in to comment.