Skip to content

Commit e2585e3

Browse files
committed
Ignore commented includes
1 parent 34cf680 commit e2585e3

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)