mirror of https://github.com/ecmwf/eccodes.git
Scripts: Check parameter name for leading/trailing spaces
This commit is contained in:
parent
9e788b17bd
commit
1c4ae04767
|
@ -126,6 +126,9 @@ if ($SANITY_CHECK) {
|
|||
my $x = $dbh->selectrow_array("select * from param.param where id = ?",undef,$paramId);
|
||||
die "Error: paramId=$x exists in the database (line ", $lcount+1, ")\n" if (defined $x);
|
||||
|
||||
die "Error: Name '$name': ends in space" if ($name =~ / $/);
|
||||
die "Error: Name '$name': starts with space" if ($name =~ /^ /);
|
||||
|
||||
# Will die if it fails
|
||||
get_db_units_code($units);
|
||||
|
||||
|
|
Loading…
Reference in New Issue