Commit cfd23b41 authored by davemachado's avatar davemachado
Browse files

check based on whole string value over first char

parent 4a0d7cd7
...@@ -46,8 +46,8 @@ File.foreach(filename).with_index do | line, line_num | ...@@ -46,8 +46,8 @@ File.foreach(filename).with_index do | line, line_num |
next next
end end
# char to check is the first char in the first column # char to check is the first column
check_char = line.split("|")[1].strip[0].upcase check_char = line.split("|")[1].strip.upcase
section_to_entries[section].push(check_char) section_to_entries[section].push(check_char)
end end
sections.each do | sect | sections.each do | sect |
......
Supports Markdown
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