Skip to content

Commit 536bdc2

Browse files
Update test.py
1 parent e41c6a6 commit 536bdc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
for root, dirs, files in NEWS.walk():
1010
for name in files:
1111
f = root / name
12-
m = re.search(r"^Tags: (?P<tags>.*)$", f.read_text())
12+
m = re.search(r"^Tags: (?P<tags>.*)$", f.read_text(), re.MULTILINE)
1313
if m and f.parent.name not in m.group("tags"):
1414
print(f"Tag from path must be repeated in Tags metadata: {f}")
1515
sys.exit(1)

0 commit comments

Comments
 (0)