diff options
Diffstat (limited to 'together/node_modules/semver/functions/clean.js')
-rw-r--r-- | together/node_modules/semver/functions/clean.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/together/node_modules/semver/functions/clean.js b/together/node_modules/semver/functions/clean.js new file mode 100644 index 0000000..811fe6b --- /dev/null +++ b/together/node_modules/semver/functions/clean.js @@ -0,0 +1,6 @@ +const parse = require('./parse') +const clean = (version, options) => { + const s = parse(version.trim().replace(/^[=v]+/, ''), options) + return s ? s.version : null +} +module.exports = clean |