aboutsummaryrefslogtreecommitdiffstats
path: root/vanilla/node_modules/semver/functions/clean.js
diff options
context:
space:
mode:
Diffstat (limited to 'vanilla/node_modules/semver/functions/clean.js')
-rw-r--r--vanilla/node_modules/semver/functions/clean.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/vanilla/node_modules/semver/functions/clean.js b/vanilla/node_modules/semver/functions/clean.js
new file mode 100644
index 0000000..79703d6
--- /dev/null
+++ b/vanilla/node_modules/semver/functions/clean.js
@@ -0,0 +1,8 @@
+'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