Skip to content

Commit

Permalink
Remove whitespace expansion due to perf reasons
Browse files Browse the repository at this point in the history
  • Loading branch information
lramos15 committed Dec 27, 2021
1 parent 188ee72 commit 081c624
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/baseTelemetryReporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ export class BaseTelemetryReporter {

// Regex which matches @*.site
const emailRegex = /@[a-zA-Z0-9-.]+/;
const secretRegex = /\S*(key|token|sig|password|passwd|pwd)[="':\s]+\S*/;
const secretRegex = /(key|token|sig|signature|password|passwd|pwd)[="':\s]/;

// Check for common user data in the telemetry events
if (secretRegex.test(value.toLowerCase())) {
Expand Down

0 comments on commit 081c624

Please sign in to comment.