diff --git a/.gitattributes b/.gitattributes index 406640bfcc9..19f32223ab3 100644 --- a/.gitattributes +++ b/.gitattributes @@ -13,4 +13,6 @@ *.css eol=lf *.scss eol=lf *.html eol=lf -*.svg eol=lf \ No newline at end of file +*.svg eol=lf + +docs/lint/**/*.md eol=lf \ No newline at end of file diff --git a/lint/generate-docs.ts b/lint/generate-docs.ts index fb2bf53fb58..27a2e78189b 100644 --- a/lint/generate-docs.ts +++ b/lint/generate-docs.ts @@ -25,7 +25,7 @@ function lazyEJS(path: string, data: object): string { templates.set(path, require('ejs').compile(readFileSync(path).toString())); } - return templates.get(path)(data).replace(/\r\n/g, '\n'); + return templates.get(path)(data).replaceAll(/\r\n/g, '\n'); } const docsDir = join('docs', 'lint');