ccc-tnt-psd2ui/npm-packages/mac-v3.4.+/semver/functions/clean.js
2023-07-24 11:13:08 +08:00

7 lines
191 B
JavaScript

const parse = require('./parse')
const clean = (version, options) => {
const s = parse(version.trim().replace(/^[=v]+/, ''), options)
return s ? s.version : null
}
module.exports = clean