MCPcopy
hub / github.com/webpack/webpack / getVersionFromHash

Function getVersionFromHash

lib/sharing/utils.js:220–224  ·  view source on GitHub ↗

* extract git dep version from hash * @param {string} hash hash * @returns {string} git dep version

(hash)

Source from the content-addressed store, hash-verified

218 * @returns {string} git dep version
219 */
220function getVersionFromHash(hash) {
221 const matched = hash.match(RE_URL_HASH_VERSION);
222
223 return (matched && matched[1]) || "";
224}
225
226/**
227 * if string can be decoded

Callers 1

getGitUrlVersionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected