Match leading and trailing punctuation as separate steps. For trailing punctuation, perform a basic check first to reduce backtracking. Update the email regex to reduce backtracking and also be more accurate: the domain part must start with a word character, and the tld only matches word characters.
This is backported from #1195, but only includes the regex speedups, not the other changes.
The text was updated successfully, but these errors were encountered:
IssueID #3960: SNYK-PYTHON-JINJA2-1012994 - Update to Jinja-2.11.3 as per: https://snyk.io/vuln/SNYK-PYTHON-JINJA2-1012994 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-28493 https://github.com/pallets/jinja/blob/ab81fd9c277900c85da0c322a2ff9d68a235b2e6/src/jinja2/utils.py#L20 pallets/jinja#1343 Modified: dev-requirements.txt requirements.txt