chore(telemetry): remove hardcoded legacy getacquired slug from universal path normalizer
This commit is contained in:
@@ -4576,16 +4576,11 @@ function normalizeFsPath(
|
||||
normalized = normalized.slice(2);
|
||||
}
|
||||
|
||||
// 3. Strip project slug prefix if the model hallucinates it (e.g. getacquired-2-0/src...)
|
||||
// 3. Strip project slug prefix if the model hallucinates it
|
||||
if (projectSlug && normalized.startsWith(`${projectSlug}/`)) {
|
||||
normalized = normalized.slice(projectSlug.length + 1);
|
||||
}
|
||||
|
||||
// Handle any other legacy hardcoded occurrences
|
||||
if (normalized.startsWith("getacquired-2-0/")) {
|
||||
normalized = normalized.substring("getacquired-2-0/".length);
|
||||
}
|
||||
|
||||
const projectRoot = FS_ROOT;
|
||||
const abs = `${projectRoot}/${normalized}`.replace(/\/+/g, "/");
|
||||
const norm = abs.replace(/\/[^/]+\/\.\.(?=\/|$)/g, "").replace(/\/+/g, "/");
|
||||
|
||||
Reference in New Issue
Block a user