From 6f7190d24af05b5cc905c3899e8f4bea16fb9b32 Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Thu, 21 Feb 2019 18:33:13 +0200 Subject: [PATCH] Update extract.js --- scripts/extract.js | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/scripts/extract.js b/scripts/extract.js index 30594decb..b3312503b 100644 --- a/scripts/extract.js +++ b/scripts/extract.js @@ -21,23 +21,7 @@ attempt("snippet_data.json generation", () => { .split("\n") .map(v => v.replace(/[*-] /g, "")) .filter(v => v.trim() !== "") - // const answer = getSection("#### Answer", contents) - - // const goodToHear = getSection("#### Good to hear", contents, false) - // .split("\n") - // .map(v => v.replace(/[*-] /g, "")) - // .filter(v => v.trim() !== "") - - // const links = getSection("##### Additional links", contents) - // .split("\n") - // .filter(v => - // /(\/\*[\w\'\s\r\n\*]*\*\/)|(\/\/[\w\s\']*)|(\\/]*\>)/.test( - // v - // ) - // ) - // .map(v => v.replace(/[*-] /g, "")) - // .filter(v => v.trim() !== "" && !v.includes("tags")) - + return { name, title, @@ -56,4 +40,4 @@ attempt("snippet_data.json generation", () => { }) console.log(`${chalk.green("SUCCESS!")} snippet_data.json file generated!`); -console.timeEnd("Extractor"); \ No newline at end of file +console.timeEnd("Extractor");