mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2025-10-09 12:00:17 +00:00
push all website files
This commit is contained in:
14
website/functions/node_modules/axios/lib/helpers/combineURLs.js
generated
vendored
Normal file
14
website/functions/node_modules/axios/lib/helpers/combineURLs.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
'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
|
||||
*/
|
||||
module.exports = function combineURLs(baseURL, relativeURL) {
|
||||
return relativeURL
|
||||
? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '')
|
||||
: baseURL;
|
||||
};
|
Reference in New Issue
Block a user