source:
frontend/node_modules/semver/functions/clean.js
| Last change on this file was 9af201e, checked in by , 11 days ago | |
|---|---|
|
|
| File size: 205 bytes | |
| Line | |
|---|---|
| 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.
