mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 01:15:28 +00:00
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