mirror of
https://github.com/hanzoai/agency.git
synced 2026-11-02 19:13:28 +00:00
7 lines
191 B
Plaintext
7 lines
191 B
Plaintext
const parse = require('./parse')
|
|
const clean = (version, options) => {
|
|
const s = parse(version.trim().replace(/^[=v]+/, ''), options)
|
|
return s ? s.version : null
|
|
}
|
|
module.exports = clean
|