@truffle/compile-solidity
Version:
Compiler helper and artifact manager for Solidity files
13 lines • 474 B
JavaScript
;
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