diff --git a/README.md b/README.md index 8db6223..054f294 100644 --- a/README.md +++ b/README.md @@ -146,6 +146,7 @@ Baked-in Validations | btc_addr | Bitcoin Address | | btc_addr_bech32 | Bitcoin Bech32 Address (segwit) | | datetime | Datetime | +| e164 | e164 formatted phone number | | email | E-mail String | eth_addr | Ethereum Address | | hexadecimal | Hexadecimal String | @@ -186,7 +187,7 @@ Baked-in Validations | Tag | Description | | - | - | | dir | Directory | -| e164 | NOT DOCUMENTED IN doc.go | +| endswith | Ends With | | excludes | Excludes | | excludesall | Excludes All | | excludesrune | Excludes Rune | diff --git a/doc.go b/doc.go index aeeedd8..1b1957e 100644 --- a/doc.go +++ b/doc.go @@ -790,6 +790,13 @@ This validates that a string value contains a valid hsla color Usage: hsla +E.164 Phone Number String + +This validates that a string value contains a valid E.164 Phone number +https://en.wikipedia.org/wiki/E.164 (ex. +1123456789) + + Usage: e164 + E-mail String This validates that a string value contains a valid email