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 a37e897..efd2962 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');