"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.redactUrl = redactUrl;
function redactUrl(url) {
    return url
        .replace(/\/(v[23])\/[a-zA-Z0-9_-]+/g, '/$1/***REDACTED***')
        .replace(/([?&])(apikey|api_key|key)=[^&]+/gi, '$1$2=***REDACTED***');
}
//# sourceMappingURL=redactUrl.js.map