source: frontend/node_modules/semver/ranges/valid.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 326 bytes
Line 
1'use strict'
2
3const Range = require('../classes/range')
4const validRange = (range, options) => {
5 try {
6 // Return '*' instead of '' so that truthiness works.
7 // This will throw if it's invalid anyway
8 return new Range(range, options).range || '*'
9 } catch (er) {
10 return null
11 }
12}
13module.exports = validRange
Note: See TracBrowser for help on using the repository browser.