11cb0ef41Sopenharmony_ciconst parse = require('./parse') 21cb0ef41Sopenharmony_ciconst clean = (version, options) => { 31cb0ef41Sopenharmony_ci const s = parse(version.trim().replace(/^[=v]+/, ''), options) 41cb0ef41Sopenharmony_ci return s ? s.version : null 51cb0ef41Sopenharmony_ci} 61cb0ef41Sopenharmony_cimodule.exports = clean 7