Refactor
This commit is contained in:
parent
aa4ef6745a
commit
d92044cf6a
13 changed files with 12 additions and 12 deletions
13
src/misc/license.ts
Normal file
13
src/misc/license.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import * as fs from 'fs';
|
||||
|
||||
const license = fs.readFileSync(__dirname + '/../../LICENSE', 'utf-8');
|
||||
|
||||
const licenseHtml = license
|
||||
.replace(/\r\n/g, '\n')
|
||||
.replace(/(.)\n(.)/g, '$1 $2')
|
||||
.replace(/(^|\n)(.*?)($|\n)/g, '<p>$2</p>');
|
||||
|
||||
export {
|
||||
license,
|
||||
licenseHtml
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue