mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
perf: replace regex with slice(1) for leading slash removal
This commit is contained in:
parent
746921f5f4
commit
b863406fcc
1 changed files with 1 additions and 1 deletions
|
|
@ -382,7 +382,7 @@ export const ChatTextArea = forwardRef<HTMLTextAreaElement, ChatTextAreaProps>(
|
|||
// Keep the context menu open and immediately search within the folder
|
||||
setShowContextMenu(true)
|
||||
setSelectedType(null)
|
||||
const folderQuery = insertValue.replace(/^\/+/, "")
|
||||
const folderQuery = insertValue.slice(1)
|
||||
setSearchQuery(folderQuery)
|
||||
setSelectedMenuIndex(0)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue