Skip to content

Commit fe6f6f0

Browse files
authored
Merge pull request #81148 from aireilly/dont-catch-commented-includes
Don't catch commented includes in the build_for_portal script
2 parents 5446032 + e2585e3 commit fe6f6f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build_for_portal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
EXTERNAL_LINK_RE = re.compile(
3838
"[\./]*([\w_-]+)/[\w_/-]*?([\w_.-]*\.(?:html|adoc))", re.DOTALL
3939
)
40-
INCLUDE_RE = re.compile("include::(.*?)\[(.*?)\]", re.M)
40+
INCLUDE_RE = re.compile(r"^include::(.*?)\[(.*?)\]", re.M)
4141
IFDEF_RE = re.compile(r"^if(n?)def::(.*?)\[\]", re.M)
4242
ENDIF_RE = re.compile(r"^endif::(.*?)\[\]\r?\n", re.M)
4343
COMMENT_CONTENT_RE = re.compile(r"^^////$.*?^////$", re.M | re.DOTALL)

0 commit comments

Comments
 (0)