Skip to content

Commit d432e85

Browse files
authored
Add url cleaning regex (microsoft#259812)
1 parent 065f528 commit d432e85

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/vs/platform/telemetry/common/telemetryUtils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ function removePropertiesWithPossibleUserInfo(property: string): string {
332332
}
333333

334334
const userDataRegexes = [
335+
{ label: 'URL', regex: /[a-zA-Z][a-zA-Z0-9+.-]*:\/\/[^\s]*/ },
335336
{ label: 'Google API Key', regex: /AIza[A-Za-z0-9_\\\-]{35}/ },
336337
{ label: 'JWT', regex: /eyJ[0eXAiOiJKV1Qi|hbGci|a-zA-Z0-9\-_]+\.[a-zA-Z0-9\-_]+\.[a-zA-Z0-9\-_]+/ },
337338
{ label: 'Slack Token', regex: /xox[pbar]\-[A-Za-z0-9]/ },

0 commit comments

Comments
 (0)