mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-21 22:50:59 -05:00
fix: allow dash char in autocorrect content validation (#838)
This commit is contained in:
parent
95d4f61d7f
commit
6062a361f1
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ export function useAutoComplete(
|
||||||
const cursor = el.selectionStart;
|
const cursor = el.selectionStart;
|
||||||
const content = el.value.slice(0, cursor);
|
const content = el.value.slice(0, cursor);
|
||||||
|
|
||||||
const valid = /\w/;
|
const valid = /[\w\-]/;
|
||||||
|
|
||||||
let j = content.length - 1;
|
let j = content.length - 1;
|
||||||
if (content[j] === "@") {
|
if (content[j] === "@") {
|
||||||
|
|
Loading…
Reference in a new issue