Fix invalid escape sequence warning

This commit is contained in:
drojf
2024-01-25 22:26:47 +11:00
parent 9e57ea9fb1
commit 5eb74fbdb3

View File

@@ -199,7 +199,7 @@ def get_chapter_name_and_translation_from_git_tag():
) )
else: else:
# Look for the chapter name to build in the git tag # Look for the chapter name to build in the git tag
tag_fragments = [x.lower() for x in re.split("[\W_]", GIT_REF)] tag_fragments = [x.lower() for x in re.split(r"[\W_]", GIT_REF)]
if "all" in tag_fragments: if "all" in tag_fragments:
returned_chapter_name = "all" returned_chapter_name = "all"