🐛 correctly adhere to LanceDB table name spec

This commit is contained in:
Nate Sesti 2024-04-26 10:03:12 -07:00
parent 044b2e8453
commit a6b46b98cb

View file

@ -44,10 +44,7 @@ export class LanceDbIndex implements CodebaseIndex {
) {}
private tableNameForTag(tag: IndexTag) {
return tagToString(tag)
.replace(/\//g, "")
.replace(/\\/g, "")
.replace(/\:/g, "");
return tagToString(tag).replace(/[^\w-_.]/g, "");
}
private async createSqliteCacheTable(db: DatabaseConnection) {