From 43db54e5d89e5b6da3ccfbf6c3d24de5503b7641 Mon Sep 17 00:00:00 2001 From: Dave Machado Date: Tue, 8 Aug 2017 22:14:48 -0400 Subject: [PATCH] Update conditional to use raw index of substring --- build/condenseMd.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/condenseMd.js b/build/condenseMd.js index 14f84fc..1fd51dc 100644 --- a/build/condenseMd.js +++ b/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); \ No newline at end of file +setupMd(process.argv[2].toString(), anchorText);