From 34a9de929d087f38846b5b252942f184d4ee78d2 Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Thu, 28 Jul 2022 17:22:47 +0200 Subject: [PATCH] use standard character classes instead of bracketed character classes --- mmdebstrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mmdebstrap b/mmdebstrap index b4d2fd6..9894a9e 100755 --- a/mmdebstrap +++ b/mmdebstrap @@ -4452,7 +4452,7 @@ sub main() { ); close $fh; if ( $? == 0 - and $content =~ /^apt ([0-9]+\.[0-9]+\.[0-9]+)[a-z0-9]* \([a-z0-9-]+\)$/m) { + and $content =~ /^apt (\d+\.\d+\.\d+)\w* \(\S+\)$/am) { $aptversion = version->new($1); } if ($aptversion < "2.3.14") {