mirror of
https://github.com/public-apis/public-apis.git
synced 2025-05-30 09:26:22 +02:00
Update conditional to use raw index of substring
This commit is contained in:
parent
95071c35cf
commit
43db54e5d8
1 changed files with 2 additions and 2 deletions
|
@ -36,7 +36,7 @@ function setupMd(filename, anchor) {
|
||||||
if (line.length < 2 || cur_line == lines.length) {
|
if (line.length < 2 || cur_line == lines.length) {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
if (line.startsWith("|")) {
|
if (line.indexOf("|") == 0) {
|
||||||
arr.push(line + table_name)
|
arr.push(line + table_name)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue