summaryrefslogtreecommitdiffstats
path: root/make_new_gtlds.pl
blob: ae8b9ac6a4295b41172cfa733a4748c89790df20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/perl
# SPDX-License-Identifier: GPL-2.0-or-later

use warnings;
use strict;

while (<>) {
	chomp;
	s/#.*$//;
	s/^\s+//; s/\s+$//;
	next if /^$/;

	die "format error: $_" if not /^(xn--[a-z0-9-]+|[a-z]+)$/;

	print qq|    "$_",\n|;
}