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");