Commit 88fc2e37 by Calen Pennington

Fix unbalanced paren in regex

parent 04879a83
......@@ -96,7 +96,7 @@ def replace_static_urls(text, data_directory, course_namespace=None):
return "".join([quote, url, quote])
return re.sub(
_url_replace_regex('/static/(?!{data_dir}'.format(data_dir=data_directory)),
_url_replace_regex('/static/(?!{data_dir})'.format(data_dir=data_directory)),
replace_static_url,
text
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment