summaryrefslogtreecommitdiff
path: root/src/mfm/html.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-09-06 04:28:42 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-09-06 04:28:42 +0900
commitccf8e44acc8b4bcdb19895ce60cd86d699efcbf7 (patch)
treec313e84c98b54934ef0f24922610ff5e0f60a751 /src/mfm/html.ts
parentImprove welcome page (diff)
parentShow host in local user detail (#2634) (diff)
downloadmisskey-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.ts5
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 }) {