mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-21 04:41:16 -05:00
Make mentions clickable
This commit is contained in:
@@ -1,12 +1,4 @@
|
||||
/*
|
||||
Mention regex
|
||||
- File and folder paths (starting with '/')
|
||||
- URLs (containing '://')
|
||||
- The 'problems' keyword
|
||||
- Word boundary after 'problems' to avoid partial matches
|
||||
*/
|
||||
export const mentionRegex = /@((?:\/|\w+:\/\/)[^\s]+|problems\b)/
|
||||
export const mentionRegexGlobal = new RegExp(mentionRegex.source, "g")
|
||||
import { mentionRegex } from "../../../src/shared/context-mentions"
|
||||
|
||||
export function insertMention(text: string, position: number, value: string): string {
|
||||
const beforeCursor = text.slice(0, position)
|
||||
Reference in New Issue
Block a user