From 95dfd21ea2a292a4a27b05988054753f80923d09 Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Sat, 14 Jan 2017 07:03:49 +0000 Subject: scripts/buildtable: Check for extraneous spaces after header name --- scripts/buildtable.pl | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts') 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; -- cgit v1.2.3