mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-03 12:00:59 +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
|
line = line.dup
|
||||||
abort 'Header is not a comment' unless line.slice!(0) == '#'
|
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
|
end
|
||||||
|
|
||||||
def parse_field_answer(answer)
|
def parse_field_answer(answer)
|
||||||
|
Loading…
Reference in New Issue
Block a user