mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-22 05:11:06 -05:00
Make mentions clickable
This commit is contained in:
@@ -19,6 +19,7 @@ export interface WebviewMessage {
|
||||
| "requestOllamaModels"
|
||||
| "openImage"
|
||||
| "openFile"
|
||||
| "openMention"
|
||||
text?: string
|
||||
askResponse?: ClaudeAskResponse
|
||||
apiConfiguration?: ApiConfiguration
|
||||
|
||||
9
src/shared/context-mentions.ts
Normal file
9
src/shared/context-mentions.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
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")
|
||||
Reference in New Issue
Block a user