From: Ian Jackson Date: Sat, 13 Oct 2018 09:51:42 +0000 (+0100) Subject: dgit: Drop (?!\n) from a use of $cleanmode_re X-Git-Tag: archive/debian/8.0~35 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=6679a38dc8a026af322b799be533789684e74721;hp=ffa00870d1ce6ae18d11aa7511f432b7b184e1e9;p=dgit.git dgit: Drop (?!\n) from a use of $cleanmode_re The config machinery now defends us from newlines. Signed-off-by: Ian Jackson --- diff --git a/dgit b/dgit index a37e8979..efd29620 100755 --- 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');