Use string interpolation

This commit is contained in:
Aya Morisawa
2018-09-01 23:12:51 +09:00
parent ffb345ccb5
commit 291beb45fc
40 changed files with 53 additions and 53 deletions

View File

@ -191,7 +191,7 @@ class Autocomplete {
const acct = renderAcct(value);
// 挿入
this.text = trimmedBefore + '@' + acct + ' ' + after;
this.text = `${trimmedBefore}@${acct} ${after}`;
// キャレットを戻す
this.vm.$nextTick(() => {
@ -207,7 +207,7 @@ class Autocomplete {
const after = source.substr(caret);
// 挿入
this.text = trimmedBefore + '#' + value + ' ' + after;
this.text = `${trimmedBefore}#${value} ${after}`;
// キャレットを戻す
this.vm.$nextTick(() => {