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 b7bbdc4 commit 2ada565Copy full SHA for 2ada565
src/vs/platform/telemetry/common/telemetryUtils.ts
@@ -287,6 +287,11 @@ export function getPiiPathsFromEnvironment(paths: IPathEnvironment): string[] {
287
*/
288
function anonymizeFilePaths(stack: string, cleanupPatterns: RegExp[]): string {
289
290
+ // Fast check to see if it is a file path to avoid doing unnecessary heavy regex work
291
+ if (!stack || (!stack.includes('/') && !stack.includes('\\'))) {
292
+ return stack;
293
+ }
294
+
295
let updatedStack = stack;
296
297
const cleanUpIndexes: [number, number][] = [];
0 commit comments