Skip to content

Commit f25aad9

Browse files
authored
Merge branch 'main' into sy_debug_mode
2 parents e1931d2 + 05681a1 commit f25aad9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,9 @@ def wrapper(*args, **kwargs):
263263
# ignore_pattern also skips parsing.
264264
# See https://github.com/sphinx-gallery/sphinx-gallery/issues/721
265265
# for a more detailed description of the issue.
266+
# GALLERY_PATTERN should be a regular expression.
266267
sphinx_gallery_conf["ignore_pattern"] = (
267-
r"/(?!" + re.escape(os.getenv("GALLERY_PATTERN")) + r")[^/]+$"
268+
r"^(?!.*" + os.getenv("GALLERY_PATTERN") + r")"
268269
)
269270

270271
for i in range(len(sphinx_gallery_conf["examples_dirs"])):

0 commit comments

Comments
 (0)