mirror of
https://github.com/public-apis/public-apis.git
synced 2025-05-12 00:26:45 +02:00
check based on whole string value over first char
This commit is contained in:
parent
4a0d7cd78c
commit
cfd23b41f9
1 changed files with 2 additions and 2 deletions
|
@ -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 |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue