There was an error while loading. Please reload this page.
1 parent 7eba524 commit a2c7a3bCopy full SHA for a2c7a3b
1 file changed
scripts/check_markup.py
@@ -17,7 +17,7 @@
17
from pathlib import Path
18
19
PATTERNS = [
20
- ("sphinx role", re.compile(r":[\w.-]+:`.*?`")),
+ ("sphinx role", re.compile(r":(?:\w+:)?[\w.-]+:`.*?`")),
21
("literal/code span", re.compile(r"``.*?``")),
22
("substitution ref", re.compile(r"\|[\w.-]+\|")),
23
("percent placeholder", re.compile(r"%\(\w+\)[a-zA-Z]|%[a-zA-Z]")),
0 commit comments