mirror of
https://github.com/FranP-code/public-apis.git
synced 2025-10-13 00:03:04 +00:00
check based on whole string value over first char
This commit is contained in:
@@ -46,8 +46,8 @@ File.foreach(filename).with_index do | line, line_num |
|
||||
next
|
||||
end
|
||||
|
||||
# char to check is the first char in the first column
|
||||
check_char = line.split("|")[1].strip[0].upcase
|
||||
# char to check is the first column
|
||||
check_char = line.split("|")[1].strip.upcase
|
||||
section_to_entries[section].push(check_char)
|
||||
end
|
||||
sections.each do | sect |
|
||||
|
||||
Reference in New Issue
Block a user