Newer
Older
vue-indexer / node_modules / semver / functions / clean.js
@eugene-sukhodolskiy eugene-sukhodolskiy on 24 Sep 191 bytes v1.0
const parse = require('./parse')
const clean = (version, options) => {
  const s = parse(version.trim().replace(/^[=v]+/, ''), options)
  return s ? s.version : null
}
module.exports = clean