Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 458 Bytes

README.md

File metadata and controls

12 lines (9 loc) · 458 Bytes

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