improve version tag regexp to match cases with leading blanks

This commit is contained in:
Axel Kohlmeyer 2022-09-26 20:39:46 -04:00
parent 0fe739eb35
commit 7238a29cb7
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ patterns:
"""
def check_pending_tag(f):
pattern = re.compile(r'\.\. +version(changed|added):: +TBD')
pattern = re.compile(r'^ *\.\. +version(changed|added):: +TBD')
last_line = "\n"
lineno = 1
errors = set()