浏览代码

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

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

Signed-off-by: Felix Fietkau <[email protected]>
Felix Fietkau 6 年之前
父节点
当前提交
d5cd80a1e8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scripts/feeds

+ 1 - 1
scripts/feeds

@@ -55,7 +55,7 @@ sub parse_file($$) {
 		$line++;
 		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) {
 			die "Syntax error in $fname, line $line\n";
 		}