* extract git dep version from hash * @param {string} hash hash * @returns {string} git dep version
(hash)
| 218 | * @returns {string} git dep version |
| 219 | */ |
| 220 | function 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 |