diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-06-12 19:05:40 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-06-12 19:05:40 +0900 |
| commit | 0318f7344fae3265171682a016f90368e3d2a8c3 (patch) | |
| tree | 10f40a3a0b942c77e082b78325a03b224cce9228 /src | |
| parent | モバイルでもハッシュタグを検索できるように (diff) | |
| download | misskey-0318f7344fae3265171682a016f90368e3d2a8c3.tar.gz misskey-0318f7344fae3265171682a016f90368e3d2a8c3.tar.bz2 misskey-0318f7344fae3265171682a016f90368e3d2a8c3.zip | |
Fix bug
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/app/common/views/components/note-html.ts | 4 |
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(); } |