summaryrefslogtreecommitdiff
path: root/scripts/update-priority.pl
diff options
context:
space:
mode:
authorArthur Xiong <arthur@vyatta.com>2010-04-28 20:49:04 +0000
committerArthur Xiong <arthur@vyatta.com>2010-04-28 20:49:04 +0000
commitb33a126adb4e1f9081d2146bb49b953c8e3361a1 (patch)
tree79848f0956729b1f5449e717595124c325c6d766 /scripts/update-priority.pl
parent31746b6aeecf4d7cdbe3d4b9cf797d089e48fa25 (diff)
downloadvyatta-cfg-b33a126adb4e1f9081d2146bb49b953c8e3361a1.tar.gz
vyatta-cfg-b33a126adb4e1f9081d2146bb49b953c8e3361a1.zip
Update regex to handle priority line without space(s) and comment in the
end
Diffstat (limited to 'scripts/update-priority.pl')
-rw-r--r--scripts/update-priority.pl2
1 files changed, 1 insertions, 1 deletions
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;