ankane / logstop

Keep personal data out of your logs
MIT License
240 stars 13 forks source link

Scrubbing international format phone numbers #14

Closed hashwin closed 2 years ago

hashwin commented 2 years ago

The current phone regex does not match international format like "+14129996294". Maybe this regex could be added as a separate option:

/^\+(?:[0-9] ?){6,14}[0-9]$/
ankane commented 2 years ago

Hey @hashwin, thanks for the suggestion! Added support for scrubbing E.164 numbers in the commit above.