Skip to content

Commit

Permalink
Merge pull request #1 from kanmu/knee
Browse files Browse the repository at this point in the history
正規表現
  • Loading branch information
hiroakis authored Nov 12, 2018
2 parents 832502b + a349720 commit 8bac7e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/fluent/plugin/filter_pan_anonymizer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class PANAnonymizerFilter < Filter
Fluent::Plugin.register_filter("pan_anonymizer", self)

config_section :pan, param_name: :pan_configs, required: true, multi: true do
config_param :formats, :array, default: []
config_param :formats, :array, value_type: :regexp, default: []
config_param :checksum_algorithm, :enum, list: Fluent::PAN::Masker::CHECKSUM_FUNC.keys, default: :luhn
config_param :mask, :string, default: "****"
end
Expand Down
2 changes: 1 addition & 1 deletion test/plugin/test_filter_pan_anonymizer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def filter(conf, messages)
test "aaaaaaaa" do
conf = %[
<pan>
formats %r/4\\d{15}/
formats /4\\d{15}/
checksum_algorithm luhn
mask xxxx
</pan>
Expand Down

0 comments on commit 8bac7e8

Please sign in to comment.