forked from abner/for-legacy-web
fix: allow dash char in autocorrect content validation (#838)
This commit is contained in:
@@ -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] === "@") {
|
||||
|
||||
Reference in New Issue
Block a user