Skip to content

Commit 55ba375

Browse files
committed
One last ammend to regex
1 parent 6c9c0b7 commit 55ba375

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

docs/sphinx/source/conf.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -389,10 +389,9 @@ def setup(app):
389389
'gallery_dirs': ['gallery'], # location of generated output
390390

391391
# do not execute gallery examples that begin with NX_
392-
# left & center operands ensure only start of filename
393-
# is the remaining group to be matched by right operand
392+
# os.path.sep in negative lookahead ensures exclusive match of filename
394393
# https://sphinx-gallery.github.io/stable/configuration.html#parsing-and-executing-examples-via-matching-patterns # noqa: E501
395-
'filename_pattern': "^.*" + os.path.sep + "((?!NX_).)*$",
394+
'filename_pattern': rf"^((?!{os.path.sep}NX_).)*$",
396395

397396
# directory where function/class granular galleries are stored
398397
'backreferences_dir': 'reference/generated/gallery_backreferences',

0 commit comments

Comments
 (0)