Fix resolution field validator

This commit is contained in:
Adam Turner 2022-01-21 00:46:25 +00:00
parent 06858cd621
commit cf5b6b1649
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ repos:
- id: validate-resolution - id: validate-resolution
name: "Validate PEP Resolution field" name: "Validate PEP Resolution field"
language: pygrep language: pygrep
entry: '(?<!\n\n)^Resolution: (?:(?!https:\/\/\S*\n))' entry: '(?<!\n\n)^Resolution: (?:(?!(https:\/\/\S*|:pep:`[a-zA-Z\d \-<>#]*?`)\n))'
args: ['--multiline'] args: ['--multiline']
files: '^pep-\d+\.(rst|txt)$' files: '^pep-\d+\.(rst|txt)$'
types: [text] types: [text]