Skip to content

Commit

Permalink
Drop global flag from regex
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphbean committed Sep 15, 2023
1 parent c54dd15 commit 7b17486
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sync2jira/downstream_issue.py
Original file line number Diff line number Diff line change
Expand Up @@ -1128,7 +1128,7 @@ def _update_description(existing, issue):
if 'Upstream description' in new_description:
# If we just need to update the content of the description
new_description = re.sub(
r"Upstream description:(\r\n*|\r*|\n*|.*){quote}((?s).*){quote}",
r"Upstream description:(\r\n*|\r*|\n*|.*){quote}(.*){quote}",
r"Upstream description: {quote}%s{quote}" % issue.content,
new_description)
elif '] Upstream issue status:' in new_description and '] Upstream Reporter:' in new_description:
Expand Down

0 comments on commit 7b17486

Please sign in to comment.