Closed jdneo closed 2 years ago
how about I add API allowing you to register such patterns? E.g.
addSensitvePattern(pattern: RegExp)
Sounds good.
Instead of directly remove matched result, I'm thinking whether below proposal would be more powerful and flexible.
addReplacePattern(pattern: RegExp, replaceString: string)
E.g. Replace /path must include project and resource name: \/.*/gi
with "path must include reousrce name" . Then you know what's redacted.
interesting, vscode-extension-telemetry@0.5.0 now also supports this... https://github.com/microsoft/vscode-extension-telemetry/releases/tag/v0.5.0
/path must include project and resource name: \/.*/gi