From cf0fad44a75836fd85ab9023923d3fbd39fe7940 Mon Sep 17 00:00:00 2001 From: Gavin Brown Date: Fri, 25 Oct 2024 12:19:55 +0100 Subject: [PATCH] fixed --- lib/rdap-validator.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/rdap-validator.js b/lib/rdap-validator.js index 07e0387..043dfb1 100644 --- a/lib/rdap-validator.js +++ b/lib/rdap-validator.js @@ -2787,7 +2787,7 @@ self.objectClassNameReferences = { self.gTLDConformance = [ ["icann_rdap_response_profile_1", "feb24-rp", "page=2"], ["icann_rdap_technical_implementation_guide_1", "feb24-tig", "page=2"], -] +]; /** * Regexp used as a first-pass check that an eventDate is a valid datetime. @@ -2808,7 +2808,7 @@ self.requiredJCardProperties = [ self.requiredJCardPropertiesCardinality = { "1" : "exactly one", "1*": "at least one", -} +}; /** * Generate a URL given the current specification and a fragment. @@ -2825,12 +2825,12 @@ self.ref = function(fragment, alternateSpec=null) { + (fragment ? "#" + fragment : ""); } -} +}; /** * Get a domain/nameserver name from the last segment of the path of the given * URL. */ -self.nameFromPath(url) { +self.nameFromPath = function(url) { return decodeURI((new URL(url)).pathname.split("/").pop()).normalize("NFC"); -} +};