use standard character classes instead of bracketed character classes

This commit is contained in:
Johannes Schauer Marin Rodrigues 2022-07-28 17:22:47 +02:00
parent b385eb548a
commit 34a9de929d
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -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") {