Convert is_new_gtld() to in_domain()

This commit is contained in:
Marco d'Itri 2014-10-15 15:02:14 +02:00
parent 3aa160e6a1
commit 3ad4f43735
2 changed files with 3 additions and 3 deletions

View File

@ -11,6 +11,6 @@ while (<>) {
die "format error: $_" if not /^((?:xn--)?[a-z0-9]+)$/;
print qq| ".$_",\n|;
print qq| "$_",\n|;
}

View File

@ -1080,8 +1080,8 @@ const char *is_new_gtld(const char *s)
int i;
for (i = 0; new_gtlds[i]; i++)
if (domcmp(s, new_gtlds[i]))
return new_gtlds[i] + 1;
if (in_domain(s, new_gtlds[i]))
return new_gtlds[i];
return 0;
}