Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
gbicann committed Oct 25, 2024
1 parent 116df79 commit cf0fad4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/rdap-validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand All @@ -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");
}
};

0 comments on commit cf0fad4

Please sign in to comment.