diff options
author | Georgi Georgiev <chutz@gg3.net> | 2022-05-15 08:57:05 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-15 08:57:05 +0300 |
commit | 3a0de579bbb0ef8daccca8a5d57440338aab02e2 (patch) | |
tree | 4aae96e5798f0d4cb0b5297c7043b09c870c3bf9 | |
parent | 97352eb84896c15bd4396d956925370fc97cd186 (diff) |
Config file mirror lines sensitive to spacing within sections (#17)
Allows users to "prettyify" their configs to make them more readable.
fixes #13
-rwxr-xr-x | apt-mirror | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -289,7 +289,7 @@ sub download_urls sub parse_config_line { - my $pattern_deb_line = qr/^[\t ]*(?<type>deb-src|deb)(?:-(?<arch>[\w\-]+))?[\t ]+(?:\[(?<options>[^\]]+)\][\t ]+)?(?<uri>[^\s]+)[\t ]?(?<components>.*)$/; + my $pattern_deb_line = qr/^[\t ]*(?<type>deb-src|deb)(?:-(?<arch>[\w\-]+))?[\t ]+(?:\[(?<options>[^\]]+)\][\t ]+)?(?<uri>[^\s]+)[\t ]+(?<components>.*)$/; my $line = $_; my %config; if ( $line =~ $pattern_deb_line ) { |