Просмотр исходного кода

Update conditional to use raw index of substring

pull/454/head
Dave Machado 6 лет назад
committed by GitHub
Родитель
Сommit
43db54e5d8
1 измененных файлов: 2 добавлений и 2 удалений
  1. +2
    -2
      build/condenseMd.js

+ 2
- 2
build/condenseMd.js Просмотреть файл

@@ -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)
}
}
@@ -60,4 +60,4 @@ if (process.argv.length < 4) {
} else {
anchorText = process.argv[3];
}
setupMd(process.argv[2].toString(), anchorText);
setupMd(process.argv[2].toString(), anchorText);

Загрузка…
Отмена
Сохранить