Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
[_sanitize](uri, prefix = false) {
const pathname = prefix ? this.pathname() : '';
if (uri) {
return uriIsRelative(uri) ? pathnameBuilder(pathname, uri) : uri;
}
return uri;
}
[_sanitize](uri, prefix = false) {
const pathname = prefix ? this._pathname : '';
if (uri) {
return utils.uriIsRelative(uri)
? utils.pathnameBuilder(pathname, uri)
: uri;
}
return uri;
}