From d1f97d07f88bd382db0f9fb6af529d8115e75830 Mon Sep 17 00:00:00 2001 From: Saleem Rashid Date: Mon, 22 May 2017 20:10:07 +0100 Subject: [PATCH] nem_test_vectors: Handle empty header column --- tools/nem_test_vectors.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/nem_test_vectors.rb b/tools/nem_test_vectors.rb index 46586f84e0..8d43239cd3 100755 --- a/tools/nem_test_vectors.rb +++ b/tools/nem_test_vectors.rb @@ -32,7 +32,10 @@ def load_header(line) line = line.dup abort 'Header is not a comment' unless line.slice!(0) == '#' - line.split(':').each(&:strip!) + header = line.split(':').each(&:strip!) + header.shift if header.first.empty? + + header end def parse_field_answer(answer)