MCPcopy Create free account
hub / github.com/ClydeTime/Surge / getBaseURL

Method getBaseURL

Script/Env.js:303–305  ·  view source on GitHub ↗

* * @param {String} url * @returns {url} 将 'http://url.com/page?name=Adam&surname=Smith' 替换为 'http://url.com/page'

(url)

Source from the content-addressed store, hash-verified

301 * @returns {url} 将 'http://url.com/page?name=Adam&surname=Smith' 替换为 'http://url.com/page'
302 */
303 getBaseURL(url) {
304 return url.replace(/[?#].*$/, '')
305 }
306
307 /**
308 *

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected