Skip to content
Snippets Groups Projects
Commit a08aa62d authored by Glenn Proctor's avatar Glenn Proctor
Browse files

Check for situations where someone has used spaces to separate the fields of...

Check for situations where someone has used spaces to separate the fields of the file rather than tabs.
parent d672f123
No related branches found
No related tags found
No related merge requests found
......@@ -85,6 +85,11 @@ while ($row = <$fh>) {
'display_label_linkable' => $a[5],
'priority' => $a[6],
'db_display_name' => $a[7]};
if ($a[1] =~ /^$/ || $a[1] =~ /^\s+$/ || $a[1] =~ /^\d+$/) {
print STDERR "Cannot parse the following line:\n$row\nIt probably has spaces separating the fields rather than tabs.\n";
exit(1);
}
}
$fh->close();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment