fix: mention slug regex includes hyphens + dropdown opaque background
This commit is contained in:
parent
665024e70b
commit
b41bb8ab1c
@ -222,7 +222,7 @@ export default function ChatPanel({ chatId, projectId }: Props) {
|
|||||||
setSending(true);
|
setSending(true);
|
||||||
try {
|
try {
|
||||||
// Extract @mentions from text → resolve to member IDs
|
// Extract @mentions from text → resolve to member IDs
|
||||||
const mentionMatches = text.match(/@(\w+)/g);
|
const mentionMatches = text.match(/@([\w-]+)/g);
|
||||||
const mentionSlugs = mentionMatches ? [...new Set(mentionMatches.map(m => m.slice(1)))] : [];
|
const mentionSlugs = mentionMatches ? [...new Set(mentionMatches.map(m => m.slice(1)))] : [];
|
||||||
const mentions = mentionSlugs
|
const mentions = mentionSlugs
|
||||||
.map(slug => mentionMapRef.current.get(slug))
|
.map(slug => mentionMapRef.current.get(slug))
|
||||||
|
|||||||
@ -6,6 +6,7 @@
|
|||||||
--accent: #3b82f6;
|
--accent: #3b82f6;
|
||||||
--border: #262626;
|
--border: #262626;
|
||||||
--card: #141414;
|
--card: #141414;
|
||||||
|
--surface: #1a1a1a;
|
||||||
--muted: #737373;
|
--muted: #737373;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user