Skip to content

Commit

Permalink
fix: flags not at the start of the expression
Browse files Browse the repository at this point in the history
related issue: openedx#33585
  • Loading branch information
DanielVZ96 committed Nov 1, 2023
1 parent 72be481 commit 115c65a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xmodule/modulestore/store_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ def _prefix_only_url_replace_regex(pattern):
Match urls in quotes pulling out the fields from pattern
"""
return re.compile("""
(?x) # flags=re.VERBOSE
(?P<quote>\\\\?['"]) # the opening quotes
{}
(?P=quote) # the first matching closing quote
""".format(pattern))
""".format(pattern),
flags=re.VERBOSE)


def rewrite_nonportable_content_links(source_course_id, dest_course_id, text):
Expand Down

0 comments on commit 115c65a

Please sign in to comment.