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

[lintian] 01/01: c/fields: Add missing ^-anchor in regex



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

nthykier pushed a commit to branch master
in repository lintian.

commit 1215ae532d36c7db77703819850fc5706e5b9f92
Author: Jakub Wilk <jwilk@debian.org>
Date:   Sat Apr 9 21:48:51 2016 +0000

    c/fields: Add missing ^-anchor in regex
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 checks/fields.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/checks/fields.pm b/checks/fields.pm
index 7269098..bac19a3 100644
--- a/checks/fields.pm
+++ b/checks/fields.pm
@@ -1282,7 +1282,7 @@ sub run {
                     tag 'vcs-field-has-unexpected-spaces', "vcs-$vcs", $uri;
                 }
                 if (   $parts[0] =~ m%^(?:git|(?:nosmart\+)?http|svn)://%
-                    or $parts[0] =~ m%(?:pserver|lp):%) {
+                    or $parts[0] =~ m%^(?:pserver|lp):%) {
                     tag 'vcs-field-uses-insecure-uri', "vcs-$vcs", $uri;
                 }
             }

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


Reply to: