Update conditional to use raw index of substring

This commit is contained in:
Dave Machado 2017-08-08 22:14:48 -04:00 committed by GitHub
parent 95071c35cf
commit 43db54e5d8

View file

@ -36,7 +36,7 @@ function setupMd(filename, anchor) {
if (line.length < 2 || cur_line == lines.length) {
break
}
if (line.startsWith("|")) {
if (line.indexOf("|") == 0) {
arr.push(line + table_name)
}
}