source:
node_modules/semver/functions/clean.js@
2d1ec46
| Last change on this file since 2d1ec46 was 81bc7da, checked in by , 3 months ago | |
|---|---|
|
|
| File size: 205 bytes | |
| Rev | Line | |
|---|---|---|
| [81bc7da] | 1 | 'use strict' |
| 2 | ||
| 3 | const parse = require('./parse') | |
| 4 | const clean = (version, options) => { | |
| 5 | const s = parse(version.trim().replace(/^[=v]+/, ''), options) | |
| 6 | return s ? s.version : null | |
| 7 | } | |
| 8 | module.exports = clean |
Note:
See TracBrowser
for help on using the repository browser.
