diff --git a/gulpfile.ts b/gulpfile.ts index 09cbd9881..1bd78d7d6 100644 --- a/gulpfile.ts +++ b/gulpfile.ts @@ -71,14 +71,14 @@ gulp.task('build:ts', () => ); gulp.task('build:about:docs', () => { - function getLicenseHtml(path: string): string { + function getLicenseHtml(path: string) { return escapeHtml(fs.readFileSync(path, 'utf-8')) .replace(/\r\n/g, '\n') .replace(/(.)\n(.)/g, '$1 $2') .replace(/(^|\n)(.*?)($|\n)/g, '

$2

'); } - function getLicenseSectionHtml(path: string): string { + function getLicenseSectionHtml(path: string) { try { const pkg = JSON.parse(fs.readFileSync(Path.parse(path).dir + '/package.json', 'utf-8')); const licenseHtml = getLicenseHtml(path);