MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / parse

Function parse

src/utils/Url.js:204–210  ·  view source on GitHub ↗

* Parse given url into url and query * @param {string} url * @returns {{url:string, query:string}}}

(url)

Source from the content-addressed store, hash-verified

202 * @returns {{url:string, query:string}}}
203 */
204 parse(url) {
205 const [uri, query = ""] = url.split(/(?=\?)/);
206 return {
207 url: uri,
208 query,
209 };
210 },
211
212 /**
213 * Formate Url object to string

Callers 5

parseProgramFunction · 0.50
parseSafeExpressionFunction · 0.50
parseFunctionFunction · 0.50
executeFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected