ccc-tnt-psd2ui/npm-packages/win32-v2.4.x/semver/functions/clean.js
2023-07-24 10:36:46 +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