// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
export function checkURL(testString) {
    return new URL(testString);
}
export function sanitizeEndpoint(url) {
    return new URL(url).href.replace(/\/$/, "");
}
/**
 * @internal
 */
export function normalizeEndpoint(endpoint) {
    return endpoint.replace(/\s+/g, "").toLowerCase();
}
//# sourceMappingURL=checkURL.js.map