Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wwwanlingxiao
public-apis
Commits
cfd23b41
Commit
cfd23b41
authored
Aug 18, 2017
by
davemachado
Browse files
check based on whole string value over first char
parent
4a0d7cd7
Changes
1
Hide whitespace changes
Inline
Side-by-side
build/validate_format.rb
View file @
cfd23b41
...
@@ -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
|
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment