Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CoderOpen/waimai
/ combineURLs
Function
combineURLs
front/utils/luch-request/helpers/combineURLs.js:10–14 ·
view source on GitHub ↗
(baseURL, relativeURL)
Source
from the content-addressed store, hash-verified
8
* @returns {string} The combined URL
9
*/
10
export
default
function
combineURLs(baseURL, relativeURL) {
11
return
relativeURL
12
? baseURL.replace(/\/+$/,
''
) +
'/'
+ relativeURL.replace(/^\/+/,
''
)
13
: baseURL
14
}
Callers
1
buildFullPath
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected