From 50716aee524677c8dffa60a4ff0caa27a58a9e06 Mon Sep 17 00:00:00 2001 From: Habtom Giorgis Date: Wed, 9 Apr 2025 17:46:04 -0700 Subject: [PATCH] updates wrongly labelled e164 rule --- is/rules.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/is/rules.go b/is/rules.go index 3cad215..c3cdc6b 100644 --- a/is/rules.go +++ b/is/rules.go @@ -197,7 +197,7 @@ var ( Base64 = validation.NewStringRuleWithError(govalidator.IsBase64, ErrBase64) // DataURI validates if a string is a valid base64-encoded data URI DataURI = validation.NewStringRuleWithError(govalidator.IsDataURI, ErrDataURI) - // E164 validates if a string is a valid ISO3166 Alpha 2 country code + // E164 validates if a string is a valid E164 phone number E164 = validation.NewStringRuleWithError(isE164Number, ErrE164) // CountryCode2 validates if a string is a valid ISO3166 Alpha 2 country code CountryCode2 = validation.NewStringRuleWithError(govalidator.IsISO3166Alpha2, ErrCountryCode2)