summaryrefslogtreecommitdiff
path: root/src/api/common/text/elements
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-05-24 16:29:00 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-05-24 16:29:00 +0900
commit39edc11ad8b51a012155f086473b42be66fe2fad (patch)
tree1372ebeb9bb300310f619ae50b0a3909a000ec1c /src/api/common/text/elements
parentAdd info to error message (diff)
downloadsharkey-39edc11ad8b51a012155f086473b42be66fe2fad.tar.gz
sharkey-39edc11ad8b51a012155f086473b42be66fe2fad.tar.bz2
sharkey-39edc11ad8b51a012155f086473b42be66fe2fad.zip
Fix iroiro
Diffstat (limited to 'src/api/common/text/elements')
-rw-r--r--src/api/common/text/elements/hashtag.ts2
1 files changed, 1 insertions, 1 deletions
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]
}] : [];