feat: support "All" in organization's country codes (#3264)

This commit is contained in:
DacongDA
2024-10-03 22:58:09 +08:00
committed by GitHub
parent e1dea9f697
commit 468631e654
3 changed files with 9 additions and 2 deletions

View File

@ -51,6 +51,9 @@ func IsPhoneValid(phone string, countryCode string) bool {
}
func IsPhoneAllowInRegin(countryCode string, allowRegions []string) bool {
if ContainsString(allowRegions, "All") {
return true
}
return ContainsString(allowRegions, countryCode)
}