Skip to content

Commit

Permalink
Update regex
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblee93 committed Aug 3, 2024
1 parent 5d390c9 commit d577692
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/core_docs/scripts/quarto-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const fs = require("node:fs");
const { glob } = require("glob");
const { execSync } = require("node:child_process");

const IGNORED_CELL_REGEX = /^```\w*?\n\/\/ ?@lc-docs-hide-cell\n[\s\S]*?^```/gm;
const IGNORED_CELL_REGEX = /^```\w*?[\s\S]\/\/ ?@lc-docs-hide-cell[\s\S]*?^```/gm;
const LC_TS_IGNORE_REGEX = /\/\/ ?@lc-ts-ignore\n/g;

async function main() {
Expand All @@ -25,6 +25,7 @@ async function main() {
content.match(IGNORED_CELL_REGEX) ||
content.match(LC_TS_IGNORE_REGEX)
) {
console.log(content);
content = content
.replace(IGNORED_CELL_REGEX, "")
.replace(LC_TS_IGNORE_REGEX, "");
Expand Down

0 comments on commit d577692

Please sign in to comment.