chiark / gitweb /
dgit: Drop (?!\n) from a use of $cleanmode_re
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 13 Oct 2018 09:51:42 +0000 (10:51 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 13 Oct 2018 09:51:42 +0000 (10:51 +0100)
The config machinery now defends us from newlines.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
dgit

diff --git a/dgit b/dgit
index a37e89796fd9c784d9588f1f7e054212eabe70d0..efd29620bc5a9652f40394059912af83d74a6863 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -7359,7 +7359,7 @@ sub parseopts_late_defaults () {
        $cleanmode //= 'dpkg-source';
 
        badcfg f_ "unknown clean-mode \`%s'", $cleanmode unless
-           $cleanmode =~ m/^($cleanmode_re)$(?!\n)/s;
+           $cleanmode =~ m/$cleanmode_re/;
     }
 
     $buildproductsdir //= access_cfg('build-products-dir', 'RETURN-UNDEF');