-
- Downloads
Add NormalizeEmail and ValidateIPAddress functions
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.
... | ... | @@ -9,6 +9,7 @@ require ( |
github.com/aws/aws-lambda-go v1.26.0 | ||
github.com/aws/aws-sdk-go v1.44.180 | ||
github.com/aws/aws-secretsmanager-caching-go v1.1.0 | ||
github.com/dimuska139/go-email-normalizer/v2 v2.0.0 | ||
github.com/dlsniper/debugger v0.6.0 | ||
github.com/go-pg/pg/v10 v10.10.6 | ||
github.com/go-redis/redis/v8 v8.11.4 | ||
... | ... |
... | ... | @@ -36,6 +36,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c |
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= | ||
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f h1:lO4WD4F/rVNCu3HqELle0jiPLLBs70cWOduZpkS1E78= | ||
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f/go.mod h1:cuUVRXasLTGF7a8hSLbxyZXjz+1KgoB3wDUb6vlszIc= | ||
github.com/dimuska139/go-email-normalizer/v2 v2.0.0 h1:LH41ypO4BFast9bc8hNu6YEkRvLloHFYihSjfwiARSg= | ||
github.com/dimuska139/go-email-normalizer/v2 v2.0.0/go.mod h1:2Gil1j/rfUKJ5BHc/uxxyRiuk3YTg6/C3D7dz7jVQfw= | ||
github.com/dlsniper/debugger v0.6.0 h1:AyPoOtJviCmig9AKNRAPPw5B5UyB+cI72zY3Jb+6LlA= | ||
github.com/dlsniper/debugger v0.6.0/go.mod h1:FFdRcPU2Yo4P411bp5U97DHJUSUMKcqw1QMGUu0uVb8= | ||
github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= | ||
... | ... |
utils/utils_test.go
0 → 100644
Please register or sign in to comment