From 39edc11ad8b51a012155f086473b42be66fe2fad Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 24 May 2017 16:29:00 +0900 Subject: Fix iroiro --- src/api/common/text/elements/hashtag.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/api/common/text/elements') diff --git a/src/api/common/text/elements/hashtag.ts b/src/api/common/text/elements/hashtag.ts index 048dbd8929..ee57b140b8 100644 --- a/src/api/common/text/elements/hashtag.ts +++ b/src/api/common/text/elements/hashtag.ts @@ -6,7 +6,7 @@ module.exports = (text, i) => { if (!(/^\s#[^\s]+/.test(text) || (i == 0 && /^#[^\s]+/.test(text)))) return null; const isHead = text[0] == '#'; const hashtag = text.match(/^\s?#[^\s]+/)[0]; - const res = !isHead ? [{ + const res: any[] = !isHead ? [{ type: 'text', content: text[0] }] : []; -- cgit v1.2.3-freya