Skip to content
Snippets Groups Projects
Select Git revision
0 results

utils_test.go

Blame
    • James Page's avatar
      c91fd974
      Add NormalizeEmail and ValidateIPAddress functions · c91fd974
      James Page authored
      Added function to normalise an email address. Currently setup with the default rules for how some email domains allow plus-addressing and other variations, but we can extend it if we need to.
      Added function to validate and clean an IP address.
      Added tests for both functions, as well as for StripEmail.
      c91fd974
      History
      Add NormalizeEmail and ValidateIPAddress functions
      James Page authored
      Added function to normalise an email address. Currently setup with the default rules for how some email domains allow plus-addressing and other variations, but we can extend it if we need to.
      Added function to validate and clean an IP address.
      Added tests for both functions, as well as for StripEmail.