summaryrefslogtreecommitdiff
path: root/src/client/app/common/views/components/note-html.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-06-12 19:05:40 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-06-12 19:05:40 +0900
commit0318f7344fae3265171682a016f90368e3d2a8c3 (patch)
tree10f40a3a0b942c77e082b78325a03b224cce9228 /src/client/app/common/views/components/note-html.ts
parentモバイルでもハッシュタグを検索できるように (diff)
downloadmisskey-0318f7344fae3265171682a016f90368e3d2a8c3.tar.gz
misskey-0318f7344fae3265171682a016f90368e3d2a8c3.tar.bz2
misskey-0318f7344fae3265171682a016f90368e3d2a8c3.zip
Fix bug
Diffstat (limited to 'src/client/app/common/views/components/note-html.ts')
-rw-r--r--src/client/app/common/views/components/note-html.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/app/common/views/components/note-html.ts b/src/client/app/common/views/components/note-html.ts
index 4941ee9783..8fa5f380dd 100644
--- a/src/client/app/common/views/components/note-html.ts
+++ b/src/client/app/common/views/components/note-html.ts
@@ -44,10 +44,10 @@ export default Vue.component('mk-note-html', {
return;
}
- while (
+ while (ast[ast.length - 1] && (
ast[ast.length - 1].type == 'hashtag' ||
(ast[ast.length - 1].type == 'text' && ast[ast.length - 1].content == ' ') ||
- (ast[ast.length - 1].type == 'text' && ast[ast.length - 1].content == '\n')) {
+ (ast[ast.length - 1].type == 'text' && ast[ast.length - 1].content == '\n'))) {
ast.pop();
}