From d751aa53683cb2dbfa3f6c1cd6396d88c937dd90 Mon Sep 17 00:00:00 2001 From: Jothan Frakes Date: Wed, 2 Aug 2023 18:42:35 -0700 Subject: [PATCH] Add IANA DB URL instead of blanking out contract date This aligns more with our formatting elsewhere in the PSL and matches the guidelines better --- tools/newgtlds.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/newgtlds.go b/tools/newgtlds.go index fa15613d0..445e91ce2 100644 --- a/tools/newgtlds.go +++ b/tools/newgtlds.go @@ -128,11 +128,14 @@ func (e *pslEntry) normalize() { // // If the registry operator field is empty the comment will be of the form: // -// '// +// '// ' +// '// https://www.iana.org/domains/root/db/.html' // // If the registry operator field is not empty the comment will be of the form: // // '// : ' +// '// https://www.iana.org/domains/root/db/.html' + func (e pslEntry) Comment() string { parts := []string{ "//", @@ -142,6 +145,7 @@ func (e pslEntry) Comment() string { if e.RegistryOperator != "" { parts = append(parts, []string{":", e.RegistryOperator}...) } + parts = append(parts, "\n// https://www.iana.org/domains/root/db/" + e.ALabel + ".html") return strings.Join(parts, " ") }