[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[lintian] 01/01: c/rules.pm: Don't use a capturing group if we aren't going to use it.



This is an automated email from the git hooks/post-receive script.

lamby pushed a commit to branch master
in repository lintian.

commit 446c3762679683ce43ae0006a46a03a3aa9054b0
Author: Chris Lamb <lamby@debian.org>
Date:   Sat May 20 11:27:23 2017 +0200

    c/rules.pm: Don't use a capturing group if we aren't going to use it.
---
 checks/rules.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/checks/rules.pm b/checks/rules.pm
index 9e52c8d..8a8efb4 100644
--- a/checks/rules.pm
+++ b/checks/rules.pm
@@ -276,7 +276,7 @@ sub run {
             next; #.PHONY implies the rest will not match
         }
 
-        if (!$includes && m/dpkg-parsechangelog.*(Source|Version|Date|Timestamp)/s) {
+        if (!$includes && m/dpkg-parsechangelog.*(?:Source|Version|Date|Timestamp)/s) {
                 tag 'debian-rules-parses-dpkg-parsechangelog', "(line $.)";
         }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: