[lintian] 03/07: private/refresh-manual-refs: Exclude trailing vX.Y... from doc title
This is an automated email from the git hooks/post-receive script.
lamby pushed a commit to branch master
in repository lintian.
commit d2e47a2d332c3812e0c7322a173dda305026fd4f
Author: Ville Skyttä <ville.skytta@iki.fi>
Date: Sat Oct 14 10:22:28 2017 +0300
private/refresh-manual-refs: Exclude trailing vX.Y... from doc title
Current policy manual has "Debian Policy Manual v4.1.1.1".
Signed-off-by: Chris Lamb <lamby@debian.org>
---
private/refresh-manual-refs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/private/refresh-manual-refs b/private/refresh-manual-refs
index 5e86168..d075ffd 100755
--- a/private/refresh-manual-refs
+++ b/private/refresh-manual-refs
@@ -59,7 +59,7 @@ my $LINTIAN_ROOT = $ENV{'LINTIAN_ROOT'};
# additional regex can be defined to match possible references on other pages
# of the manual.
-my $title_re = qr/<title\s?>(.+?)<\/title\s?>/i;
+my $title_re = qr/<title\s?>(.+?)(?:\s+v[\d.]+)?<\/title\s?>/i;
my $link_re
= qr/<link href="(.+?)" rel="[\w]+" title="([A-Z]|[A-Z]?[\d\.]+?)\.?\s+([\w\s[:punct:]]+?)">/;
my $index_re
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: