use raw string for grep regexp

This commit is contained in:
Dan Halbert 2023-11-10 22:42:42 -05:00
parent 3a34acb93c
commit 24ae0c4c73

View File

@ -257,7 +257,7 @@ def set_docs(run: bool):
if pattern_doc.search(file) and ( if pattern_doc.search(file) and (
( (
subprocess.run( subprocess.run(
f"git diff -U0 $BASE_SHA...$HEAD_SHA {github_workspace + file} | grep -o -m 1 '^[+-]\/\/|'", rf"git diff -U0 $BASE_SHA...$HEAD_SHA {github_workspace + file} | grep -o -m 1 '^[+-]\/\/|'",
capture_output=True, capture_output=True,
shell=True, shell=True,
).stdout ).stdout