mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-22 14:28:07 +00:00
nem_test_vectors: Handle empty header column
This commit is contained in:
parent
ce25dcc9fc
commit
d1f97d07f8
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user