mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-10 00:40:30 +08:00
640e188270
Former-commit-id: 435fb8e3e4f8e334ad3b0e95052edbdd9547d197
9 lines
205 B
JavaScript
9 lines
205 B
JavaScript
'use strict'
|
|
|
|
const parse = require('./parse')
|
|
const clean = (version, options) => {
|
|
const s = parse(version.trim().replace(/^[=v]+/, ''), options)
|
|
return s ? s.version : null
|
|
}
|
|
module.exports = clean
|