MCPcopy Create free account
hub / github.com/ampproject/amphtml / parse

Function parse

src/preact/utils/url.js:29–33  ·  view source on GitHub ↗

* @param {string} url * @return {!URL}

(url)

Source from the content-addressed store, hash-verified

27 * @return {!URL}
28 */
29 parse(url) {
30 const anchor = this.getAnchor_();
31 anchor.href = '';
32 return new URL(url, anchor.href);
33 },
34
35 /**
36 * Returns whether the URL has valid protocol.

Callers 7

getZindexJsFunction · 0.50
toExtensionFunction · 0.50
replaceCDNURLPathFunction · 0.50
CDNURLToRTVURLFunction · 0.50
maybeModifyCdnUrlFunction · 0.50
parseAttrsFunction · 0.50
parseDateFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected