diff options
author | Luke Dashjr <luke-jr+git@utopios.org> | 2017-01-14 07:03:49 +0000 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2017-01-14 07:04:12 +0000 |
commit | 95dfd21ea2a292a4a27b05988054753f80923d09 (patch) | |
tree | 84bb3a6a094bdd3cbe17b79f243f2add220b9cb9 /scripts/buildtable.pl | |
parent | 2a9e9503cd8604d36f966b95005ef7a88ee979c6 (diff) | |
download | bips-95dfd21ea2a292a4a27b05988054753f80923d09.tar.xz |
scripts/buildtable: Check for extraneous spaces after header name
Diffstat (limited to 'scripts/buildtable.pl')
-rwxr-xr-x | scripts/buildtable.pl | 1 |
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; |