We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b97e12 commit a1940daCopy full SHA for a1940da
src/services/code-index/vector-store/local-vector-store.ts
@@ -283,7 +283,8 @@ export class LocalVectorStore implements IVectorStore {
283
let filter = ""
284
if (directoryPrefix) {
285
// Use backticks for column name and escape single quotes in directoryPrefix
286
- filter = `\`filePath\` LIKE '${directoryPrefix}%'`
+ const filterDirectoryPrefix = directoryPrefix.replace(/\\/g, "\\\\")
287
+ filter = `\`filePath\` LIKE '${filterDirectoryPrefix}%'`
288
}
289
// Perform vector search
290
let searchQuery = table.vectorSearch(queryVector)
0 commit comments