Review funkt

This commit is contained in:
2026-08-09 21:56:00 +00:00
parent f522ae9953
commit fe9dfa4519
11366 changed files with 2335077 additions and 97 deletions

23
node_modules/axios/lib/helpers/combineURLs.js generated vendored Normal file
View File

@@ -0,0 +1,23 @@
'use strict';
/**
* Creates a new URL by combining the specified URLs
*
* @param {string} baseURL The base URL
* @param {string} relativeURL The relative URL
*
* @returns {string} The combined URL
*/
export default function combineURLs(baseURL, relativeURL) {
if (!relativeURL) {
return baseURL;
}
let end = baseURL.length;
while (end > 0 && baseURL.charCodeAt(end - 1) === 47) {
end--;
}
return baseURL.slice(0, end) + '/' + relativeURL.replace(/^\/+/, '');
}