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
1 changed files with 1 additions and 1 deletions

View File

@ -257,7 +257,7 @@ def set_docs(run: bool):
if pattern_doc.search(file) and (
(
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,
shell=True,
).stdout