diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-09-06 04:28:42 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-09-06 04:28:42 +0900 |
| commit | ccf8e44acc8b4bcdb19895ce60cd86d699efcbf7 (patch) | |
| tree | c313e84c98b54934ef0f24922610ff5e0f60a751 /src/mfm/html.ts | |
| parent | Improve welcome page (diff) | |
| parent | Show host in local user detail (#2634) (diff) | |
| download | misskey-ccf8e44acc8b4bcdb19895ce60cd86d699efcbf7.tar.gz misskey-ccf8e44acc8b4bcdb19895ce60cd86d699efcbf7.tar.bz2 misskey-ccf8e44acc8b4bcdb19895ce60cd86d699efcbf7.zip | |
Merge branch 'develop' of https://github.com/syuilo/misskey into develop
Diffstat (limited to 'src/mfm/html.ts')
| -rw-r--r-- | src/mfm/html.ts | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mfm/html.ts b/src/mfm/html.ts index 2e38fe10a0..b7fa5b6f03 100644 --- a/src/mfm/html.ts +++ b/src/mfm/html.ts @@ -4,10 +4,7 @@ const { JSDOM } = jsdom; import config from '../config'; import { INote } from '../models/note'; import { TextElement } from './parse'; - -function intersperse<T>(sep: T, xs: T[]): T[] { - return [].concat(...xs.map(x => [sep, x])).slice(1); -} +import { intersperse } from '../prelude/array'; const handlers: { [key: string]: (window: any, token: any, mentionedRemoteUsers: INote['mentionedRemoteUsers']) => void } = { bold({ document }, { bold }) { |