This commit is contained in:
syuilo 2018-06-12 19:05:40 +09:00
parent 620451122d
commit 1c10e39ce0

View file

@ -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();
} }