MCPcopy Create free account
hub / github.com/danmactough/node-feedparser / resolveSrcsetCandidate

Function resolveSrcsetCandidate

lib/utils.js:79–83  ·  view source on GitHub ↗
(baseUrl, candidate)

Source from the content-addressed store, hash-verified

77 * @private
78 */
79function resolveSrcsetCandidate (baseUrl, candidate) {
80 var match = candidate.match(/^(\s*)(\S+)([\s\S]*)$/);
81 if (!match) return candidate;
82 return match[1] + resolve(baseUrl, match[2]) + match[3];
83}
84
85function resolveSrcset (baseUrl, srcset) {
86 if (!baseUrl || !srcset || typeof srcset !== 'string') return srcset;

Callers 1

resolveSrcsetFunction · 0.85

Calls 1

resolveFunction · 0.85

Tested by

no test coverage detected