Skip to content

Commit 18fd242

Browse files
committed
Add start and termination to YAML file regex
Otherwise it found files like: .hg/store/data/readthedocs.yml.i
1 parent 194c92a commit 18fd242

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readthedocs/config/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
)
3232

3333
ALL = 'all'
34-
CONFIG_FILENAME_REGEX = r'\.?readthedocs.ya?ml'
34+
CONFIG_FILENAME_REGEX = r'^\.?readthedocs.ya?ml$'
3535

3636
CONFIG_NOT_SUPPORTED = 'config-not-supported'
3737
VERSION_INVALID = 'version-invalid'

0 commit comments

Comments
 (0)