mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-25 07:36:18 +09:00
Fix typo: trimed -> trimmed
This commit is contained in:
parent
a90adb9411
commit
e182103a06
@ -114,11 +114,11 @@ class Autocomplete {
|
||||
const source = this.textarea.value;
|
||||
|
||||
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);
|
||||
|
||||
// 結果を挿入する
|
||||
this.textarea.value = trimedBefore + '@' + value + ' ' + after;
|
||||
this.textarea.value = trimmedBefore + '@' + value + ' ' + after;
|
||||
|
||||
// キャレットを戻す
|
||||
this.textarea.focus();
|
||||
|
Loading…
Reference in New Issue
Block a user