Files
ClubLogos/scripts/node_modules/semver/ranges/valid.js
T
Tomáš Dvořák cdb8bcd3e9 fff
2025-10-03 16:26:44 +02:00

14 lines
326 B
JavaScript

'use strict'
const Range = require('../classes/range')
const validRange = (range, options) => {
try {
// Return '*' instead of '' so that truthiness works.
// This will throw if it's invalid anyway
return new Range(range, options).range || '*'
} catch (er) {
return null
}
}
module.exports = validRange