summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLuke Dashjr <luke-jr+git@utopios.org>2017-01-14 07:03:49 +0000
committerLuke Dashjr <luke-jr+git@utopios.org>2017-01-14 07:04:12 +0000
commit95dfd21ea2a292a4a27b05988054753f80923d09 (patch)
tree84bb3a6a094bdd3cbe17b79f243f2add220b9cb9 /scripts
parent2a9e9503cd8604d36f966b95005ef7a88ee979c6 (diff)
downloadbips-95dfd21ea2a292a4a27b05988054753f80923d09.tar.xz
scripts/buildtable: Check for extraneous spaces after header name
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/buildtable.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/buildtable.pl b/scripts/buildtable.pl
index 981346b..0de4a36 100755
--- a/scripts/buildtable.pl
+++ b/scripts/buildtable.pl
@@ -107,6 +107,7 @@ while (++$bipnum <= $topbip) {
$field = $1;
$val = $2;
die "Duplicate $field field in $fn" if exists $found{$field};
+ die "Too many spaces in $fn" if $val =~ /^\s/;
} elsif (m[^ ( +)(.*\S)$]) {
die "Continuation of non-field in $fn" unless defined $field;
die "Too many spaces in $fn" if length $1 != 2 + length $field;