Fix typo: trimed -> trimmed

This commit is contained in:
Aya Morisawa 2017-02-27 17:01:26 +09:00
parent 871a461fb1
commit 87fb079e5b
1 changed files with 2 additions and 2 deletions

View File

@ -114,11 +114,11 @@ class Autocomplete {
const source = this.textarea.value; const source = this.textarea.value;
const before = source.substr(0, caret); const before = source.substr(0, caret);
const trimedBefore = before.substring(0, before.lastIndexOf('@')); const trimmedBefore = before.substring(0, before.lastIndexOf('@'));
const after = source.substr(caret); const after = source.substr(caret);
// 結果を挿入する // 結果を挿入する
this.textarea.value = trimedBefore + '@' + value + ' ' + after; this.textarea.value = trimmedBefore + '@' + value + ' ' + after;
// キャレットを戻す // キャレットを戻す
this.textarea.focus(); this.textarea.focus();