in src/Microsoft.Azure.NotificationHubs/RegistrationDescription.cs [240:266]
public static bool ValidateTags(string tags)
{
if (tags == null)
{
throw new ArgumentNullException(nameof(tags), "Value cannot be null");
}
if (InstallationIdRegex.Matches(tags).Count > 1)
{
return false;
}
if (UserIdRegex.Matches(tags).Count > 1)
{
return false;
}
foreach (var tag in tags.Split(','))
{
if (!SingleTagRegex.IsMatch(tag))
{
return false;
}
}
return true;
}