Allow dashes in regexp for valid values

pull/837/head
kate! 2023-01-30 18:53:12 +08:00
parent 6f5fdf5bf4
commit 48d5d41387
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] === "@") {