mirror of
https://github.com/hotomoe/hotomoe
synced 2024-12-05 10:18:09 +09:00
Fix bug
This commit is contained in:
parent
413fbb3d0c
commit
0318f7344f
@ -44,10 +44,10 @@ export default Vue.component('mk-note-html', {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (
|
while (ast[ast.length - 1] && (
|
||||||
ast[ast.length - 1].type == 'hashtag' ||
|
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 == ' ') ||
|
||||||
(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();
|
ast.pop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user