Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow replace by Regex capture groups #8

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

zbalkan
Copy link

@zbalkan zbalkan commented Sep 6, 2023

This allows using Ruby Regex substitute characters (e.g., \1) in the mask, which allows partial masking.

The purpose of the change is to enable the most common masking pattern, "display the first 6 and last 4 numbers, mask the rest".

Solves #6.

@zbalkan
Copy link
Author

zbalkan commented Sep 6, 2023

This PR also helps solving same the problem #3

@daipom
Copy link

daipom commented Jun 13, 2024

@hiroakis Could you review this?
@zbalkan wants to publish this new feature.

The most preferable way would be to reflect the improvements to this original repo.

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

Gem::Specification.new do |spec|
spec.name = "fluent-plugin-pan-anonymizer"
spec.version = "0.0.1"
spec.version = "0.0.1.1"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incremented the version number due to changes.

@zbalkan
Copy link
Author

zbalkan commented Jun 17, 2024

I will keep the version change to prevent conflicts but I reverted other changes.

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.

None yet

2 participants