From b33a126adb4e1f9081d2146bb49b953c8e3361a1 Mon Sep 17 00:00:00 2001 From: Arthur Xiong Date: Wed, 28 Apr 2010 20:49:04 +0000 Subject: Update regex to handle priority line without space(s) and comment in the end --- scripts/update-priority.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/update-priority.pl b/scripts/update-priority.pl index e70688a..84b4933 100644 --- a/scripts/update-priority.pl +++ b/scripts/update-priority.pl @@ -39,7 +39,7 @@ open my $pf, '<', $priority_file or die "$priority_file can't be opened"; while (<$pf>) { chomp; next if /^#.*/; - die "Syntax Error \"$_\"" unless /^(\d+)\s+(\S+)\s+(|#.*)$/; + die "Syntax Error \"$_\"" unless /^(\d+)\s+(\S+)(|\s+|\s+#.*)$/; $priority = $1; $path = $2; $comment = $3; -- cgit v1.2.3