Skip to content

Commit

Permalink
Add IANA DB URL instead of blanking out contract date
Browse files Browse the repository at this point in the history
This aligns more with our formatting elsewhere in the PSL and matches the guidelines better
  • Loading branch information
dnsguru authored Aug 3, 2023
1 parent c6d22c8 commit d751aa5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/newgtlds.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,14 @@ func (e *pslEntry) normalize() {
//
// If the registry operator field is empty the comment will be of the form:
//
// '// <ALabel>
// '// <ALabel>'
// '// https://www.iana.org/domains/root/db/<ALabel>.html'
//
// If the registry operator field is not empty the comment will be of the form:
//
// '// <ALabel> : <RegistryOperator>'
// '// https://www.iana.org/domains/root/db/<ALabel>.html'

func (e pslEntry) Comment() string {
parts := []string{
"//",
Expand All @@ -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, " ")
}

Expand Down

0 comments on commit d751aa5

Please sign in to comment.