scripts/feeds: fix accepting "-" in feed type string

Fixes a syntax error in processing the type src-git-full

Signed-off-by: Felix Fietkau <nbd@nbd.name>
master
Felix Fietkau 2019-09-15 19:53:17 +02:00
parent a089d55170
commit d5cd80a1e8
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ sub parse_file($$) {
$line++; $line++;
next unless /\S/; next unless /\S/;
my ($type, $flags, $name, $urls) = m!^src-(\w+)((?:\s+--\w+(?:=\S+)?)*)\s+(\w+)(?:\s+(\S.*))?$!; my ($type, $flags, $name, $urls) = m!^src-([\w\-]+)((?:\s+--\w+(?:=\S+)?)*)\s+(\w+)(?:\s+(\S.*))?$!;
unless ($type && $name) { unless ($type && $name) {
die "Syntax error in $fname, line $line\n"; die "Syntax error in $fname, line $line\n";
} }