fix: allow dash char in autocorrect content validation (#838)

pull/1049/head
kate 2023-02-05 21:45:32 +08:00 committed by GitHub
parent c84d07f466
commit 8e6c65e8d4
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ export function useAutoComplete(
const cursor = el.selectionStart;
const content = el.value.slice(0, cursor);
const valid = /\w/;
const valid = /[\w\-]/;
let j = content.length - 1;
if (content[j] === "@") {