File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/services/code-index/vector-store Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -382,10 +382,10 @@ export class QdrantVectorStore implements IVectorStore {
382382 filter = undefined
383383 } else {
384384 // Remove leading "./" from paths like "./src" to normalize them
385- const cleanedPrefix = normalizedPrefix . startsWith ( "./" )
386- ? normalizedPrefix . slice ( 2 )
387- : normalizedPrefix
388- const segments = path . posix . normalize ( cleanedPrefix ) . split ( "/" ) . filter ( Boolean )
385+ const cleanedPrefix = path . posix . normalize (
386+ normalizedPrefix . startsWith ( "./" ) ? normalizedPrefix . slice ( 2 ) : normalizedPrefix ,
387+ )
388+ const segments = cleanedPrefix . split ( "/" ) . filter ( Boolean )
389389 if ( segments . length > 0 ) {
390390 filter = {
391391 must : segments . map ( ( segment , index ) => ( {
You can’t perform that action at this time.
0 commit comments