diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-01-01 02:08:41 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-01-01 02:08:41 +0900 |
| commit | 88e4f1b287e9fa6be12b5a2277073265d6732527 (patch) | |
| tree | e57d73ac9c20358f58c679ae57937c6b0c2e77cc /src/common/build | |
| parent | Update dependencies :rocket: (diff) | |
| download | misskey-88e4f1b287e9fa6be12b5a2277073265d6732527.tar.gz misskey-88e4f1b287e9fa6be12b5a2277073265d6732527.tar.bz2 misskey-88e4f1b287e9fa6be12b5a2277073265d6732527.zip | |
:v:
Diffstat (limited to 'src/common/build')
| -rw-r--r-- | src/common/build/license.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/common/build/license.ts b/src/common/build/license.ts new file mode 100644 index 0000000000..e5c264df8a --- /dev/null +++ b/src/common/build/license.ts @@ -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 +}; |