forked from abner/for-legacy-web
fix: allow dash char in autocorrect content validation (#838)
parent
95d4f61d7f
commit
6062a361f1
|
|
@ -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] === "@") {
|
||||
|
|
|
|||
Loading…
Reference in New Issue