Commit 40a352f9 authored by Martin Kutschker's avatar Martin Kutschker Committed by Anja Leichsenring
Browse files

[BUGFIX] Look at whole word checking for *Scanned

The words FullyScanned, PartiallyScanned and NotScanned
must not have any leading or trailing characters
when on the last line of an ReST file for
breaking changes or deprecations.

Resolves: #93208
Releases: master, 10.4
Change-Id: I4a8f0e7cf61cc885df3566e2fb4621c80d82f744
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/67332

Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
parent 9b52ab38
......@@ -194,7 +194,7 @@ class validateRstFiles
. '[78]' // from 7.x and 8.x (as there was no extension scanner back then)
. ')'
. '#',
'regex' => '#^\.\. index:: .*(?:FullyScanned|PartiallyScanned|NotScanned).*#',
'regex' => '#^\.\. index:: .*[, ](?:Fully|Partially|Not)Scanned([, ]|$).*#',
'title' => 'missing FullyScanned / PartiallyScanned / NotScanned tag',
'message' => 'insert \'.. index:: <at least one valid keyword and either FullyScanned, PartiallyScanned or NotScanned>\' at the last line of the file. See Build/Scripts/validateRstFiles.php for allowed keywords',
],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment