From 18fd242f58d6cacd7f3c460055e9122d5f1c6b9a Mon Sep 17 00:00:00 2001 From: Manuel Kaufmann Date: Wed, 29 Aug 2018 23:02:59 +0200 Subject: [PATCH] Add start and termination to YAML file regex Otherwise it found files like: .hg/store/data/readthedocs.yml.i --- readthedocs/config/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readthedocs/config/config.py b/readthedocs/config/config.py index 0d949cba486..77d31ca9269 100644 --- a/readthedocs/config/config.py +++ b/readthedocs/config/config.py @@ -31,7 +31,7 @@ ) ALL = 'all' -CONFIG_FILENAME_REGEX = r'\.?readthedocs.ya?ml' +CONFIG_FILENAME_REGEX = r'^\.?readthedocs.ya?ml$' CONFIG_NOT_SUPPORTED = 'config-not-supported' VERSION_INVALID = 'version-invalid'