MCPcopy
hub / github.com/ampproject/amphtml / getCdnUrlRegExp

Function getCdnUrlRegExp

build-system/server/app-utils.js:73–77  ·  view source on GitHub ↗
(pathPattern = '[^\'">]+')

Source from the content-addressed store, hash-verified

71 * @return {RegExp}
72 */
73const getCdnUrlRegExp = (pathPattern = '[^\'">]+') =>
74 new RegExp(
75 `(https://cdn\\.ampproject\\.org)/${pathPattern}(\\.json|\\.m?js|\\.css)`,
76 'g'
77 );
78
79/**
80 * @param {string} html

Callers 2

toInaboxDocumentFunction · 0.85
replaceCdnJsUrlsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected