UNPKG

@truffle/compile-solidity

Version:
13 lines 474 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.normalizeSolcVersion = void 0; /** * Convert a full version string (possibly with commit information, etc.) into * a canonical short-form semver version (x.y.z) */ const normalizeSolcVersion = (input) => { const version = String(input); return version.split(":")[1].trim(); }; exports.normalizeSolcVersion = normalizeSolcVersion; //# sourceMappingURL=normalizeSolcVersion.js.map