We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28f1fd5 commit 559326fCopy full SHA for 559326f
scripts/readme-to-jsdoc.ts
@@ -7,7 +7,7 @@ import mkdirp from "mkdirp";
7
const readme = readFileSync("./README.md", "utf-8");
8
const docmap = new Map<string, string[]>();
9
let doc: {name: string; lines: string[]} | null = null;
10
-for (const [i, line] of readme.split("\n").entries()) {
+for (const [i, line] of readme.split(/\r?\n/).entries()) {
11
if (/<!--\s*jsdoc/.test(line)) {
12
let match: RegExpExecArray | null;
13
if ((match = /^<!--\s+jsdoc\s+(\w+)\s+-->$/.exec(line))) {
0 commit comments