diff --git a/apps/server/src/workspaceEntries.ts b/apps/server/src/workspaceEntries.ts index 1064a7bed5..febd8d6cfa 100644 --- a/apps/server/src/workspaceEntries.ts +++ b/apps/server/src/workspaceEntries.ts @@ -54,7 +54,7 @@ function basenameOf(input: string): string { } function normalizeQuery(input: string): string { - return input.trim().replace(/^[@./]+/, "").toLowerCase(); + return input.trim().replace(/^@?(\.\/)?/, "").toLowerCase(); } function scoreEntry(entry: ProjectEntry, query: string): number {