use raw string for grep regexp
This commit is contained in:
parent
3a34acb93c
commit
24ae0c4c73
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user