Skip to content

Commit 8941cbd

Browse files
author
Dean Karn
authored
Merge pull request #635 from taybart/master
Add e164 to doc.go
2 parents f0805c6 + 8154ee6 commit 8941cbd

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ Baked-in Validations
146146
| btc_addr | Bitcoin Address |
147147
| btc_addr_bech32 | Bitcoin Bech32 Address (segwit) |
148148
| datetime | Datetime |
149+
| e164 | e164 formatted phone number |
149150
| email | E-mail String
150151
| eth_addr | Ethereum Address |
151152
| hexadecimal | Hexadecimal String |
@@ -186,7 +187,7 @@ Baked-in Validations
186187
| Tag | Description |
187188
| - | - |
188189
| dir | Directory |
189-
| e164 | NOT DOCUMENTED IN doc.go |
190+
| endswith | Ends With |
190191
| excludes | Excludes |
191192
| excludesall | Excludes All |
192193
| excludesrune | Excludes Rune |

doc.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -790,6 +790,13 @@ This validates that a string value contains a valid hsla color
790790
791791
Usage: hsla
792792
793+
E.164 Phone Number String
794+
795+
This validates that a string value contains a valid E.164 Phone number
796+
https://en.wikipedia.org/wiki/E.164 (ex. +1123456789)
797+
798+
Usage: e164
799+
793800
E-mail String
794801
795802
This validates that a string value contains a valid email

0 commit comments

Comments
 (0)