Skip to content
Snippets Groups Projects
Unverified Commit dc780049 authored by Ned Batchelder's avatar Ned Batchelder Committed by GitHub
Browse files

Merge pull request #25604 from edx/nedbat/squash-regex-warning

Squash a regex warning
parents 0ee75463 9a721483
No related branches found
No related tags found
No related merge requests found
......@@ -23,8 +23,7 @@ def _url_replace_regex(prefix):
To anyone contemplating making this more complicated:
http://xkcd.com/1171/
"""
return u"""
(?x) # flags=re.VERBOSE
return """(?x) # flags=re.VERBOSE
(?P<quote>\\\\?['"]) # the opening quotes
(?P<prefix>{prefix}) # the prefix
(?P<rest>.*?) # everything else in the url
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment