[Reproducible-commits] [blog] 03/03: ancor the regex, thanks danielsh

Mattia Rizzolo mattia at debian.org
Sun May 1 18:14:11 UTC 2016


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

mattia pushed a commit to branch master
in repository blog.

commit 50391f66cc7452f63c177ebc94e692a8553db494
Author: Mattia Rizzolo <mattia at debian.org>
Date:   Sun May 1 18:14:05 2016 +0000

    ancor the regex, thanks danielsh
---
 libdir/IkiWiki/Plugin/DebianMacros.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libdir/IkiWiki/Plugin/DebianMacros.pm b/libdir/IkiWiki/Plugin/DebianMacros.pm
index ca7134e..c6401bd 100644
--- a/libdir/IkiWiki/Plugin/DebianMacros.pm
+++ b/libdir/IkiWiki/Plugin/DebianMacros.pm
@@ -26,7 +26,7 @@ sub pkg {
 
 sub bug_out {
     my ($bug, $title) = @_;
-    if (not $bug =~ /\d+/) {
+    unless ($bug =~ /^\d+$/) {
         error("The bug $bug is not a valid bug format.");
     }
     return "[$title](https://bugs.debian.org/$bug)";

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



More information about the Reproducible-commits mailing list