Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 24ae0c4

Browse files
committedNov 11, 2023
use raw string for grep regexp
1 parent 3a34acb commit 24ae0c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎tools/ci_set_matrix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def set_docs(run: bool):
257257
if pattern_doc.search(file) and (
258258
(
259259
subprocess.run(
260-
f"git diff -U0 $BASE_SHA...$HEAD_SHA {github_workspace + file} | grep -o -m 1 '^[+-]\/\/|'",
260+
rf"git diff -U0 $BASE_SHA...$HEAD_SHA {github_workspace + file} | grep -o -m 1 '^[+-]\/\/|'",
261261
capture_output=True,
262262
shell=True,
263263
).stdout

0 commit comments

Comments
 (0)
Please sign in to comment.