From a6b46b98cb1a9cf17ee729f2c19dd48da7c63e27 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Fri, 26 Apr 2024 10:03:12 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20correctly=20adhere=20to=20LanceD?= =?UTF-8?q?B=20table=20name=20spec?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/indexing/LanceDbIndex.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/indexing/LanceDbIndex.ts b/core/indexing/LanceDbIndex.ts index 7e66693c9..33fdf77b2 100644 --- a/core/indexing/LanceDbIndex.ts +++ b/core/indexing/LanceDbIndex.ts @@ -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) {