Open clemlesne opened 6 months ago
Hi @clemlesne ,
Sounds like a good suggestion! You can create a PR for this so that you can have name as a contributor in the git history. If you find it too much work let me know, I can do it :).
@clemlesne can you check the PR #15 ? Is this what you had in mind?
It would be useful to hide secret by testing case-insensitive regex rules than today.
A false positive is better than a pawn :)
Integration proposal
Today, code implements a strict
includes
test (see https://github.com/eashi/hide-my-secrets/blob/7950e37817c710e791ad2fd337d2f5f603e3454c/src/extension.ts#L82C4-L82C40).This new impleemntation could be achieved by using
RegExp
class:Plus, the default configuration can be updated to:
Optionally, regex rules can be compiled and cached.
Issue example
Config extract:
My secret config;
Related