Skip to content

Commit

Permalink
Fix matching Debian repos
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Aug 25, 2024
1 parent 5e57e57 commit 6982304
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion software/apt-lib.pl
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ sub list_package_repos
my $lref = &read_file_lines($f, 1);
my $lnum = 0;
foreach my $l (@$lref) {
if ($l =~ /^(#*)\s*deb\s+((http|https)\S+)\s+(\S.*)/) {
if ($l =~ /^(#*)\s*deb.*?((http|https)\S+)\s+(\S.*)/) {
my $repo = { 'file' => $f,
'line' => $lnum,
'words' => \@w,
Expand Down

0 comments on commit 6982304

Please sign in to comment.