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