eac / credit_card_sanitizer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

credit_card_sanitizer

Remove credit card numbers from user text.

a = "Hello my card is 12 345123 451234 8 maybe you should not store that in your database!"
CreditCardSanitizer.new('X').sanitizer.sanitize!(a)
a == "Hello my card is XX XXXXX XXX234 8 maybe you should not store that in your database!"

Build Status

About

License:Apache License 2.0


Languages

Language:Ruby 100.0%