Skip to content

Ensure all regex matches are redacted by forcing global flag#21

Merged
SynthLuvr merged 2 commits into
mainfrom
continue-redacting
Feb 25, 2026
Merged

Ensure all regex matches are redacted by forcing global flag#21
SynthLuvr merged 2 commits into
mainfrom
continue-redacting

Conversation

@SynthLuvr
Copy link
Copy Markdown
Contributor

@SynthLuvr SynthLuvr commented Feb 25, 2026

Fixes an issue where only the first occurrence of a sensitive pattern was redacted.

Example

Before:

  • Only the first sensitive value might be replaced.

After:

  • All matches are evaluated.
  • Allowlisted matches are preserved.
  • All other matches are redacted.

@SynthLuvr SynthLuvr changed the title Continue redacting Ensure all regex matches are redacted by forcing global flag Feb 25, 2026
@SynthLuvr SynthLuvr merged commit 88cb00a into main Feb 25, 2026
3 checks passed
@SynthLuvr SynthLuvr deleted the continue-redacting branch February 25, 2026 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant