1 const Range = require('../classes/range')
2 const validRange = (range, options) => {
4 // Return '*' instead of '' so that truthiness works.
5 // This will throw if it's invalid anyway
6 return new Range(range, options).range || '*'
11 module.exports = validRange