"use strict";
/**
 * URL utility functions for test operations
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.sanitizeUrl = void 0;
/**
 * Removes trailing slash from a URL if present
 * @param url - The URL to sanitize
 * @returns The URL without a trailing slash
 * @example
 * sanitizeUrl('https://example.com/') // returns 'https://example.com'
 * sanitizeUrl('https://example.com') // returns 'https://example.com'
 */
function sanitizeUrl(url) {
    return url.replace(/\/$/, '');
}
exports.sanitizeUrl = sanitizeUrl;
