source: node_modules/semver/ranges/valid.js@ d24f17c

main
Last change on this file since d24f17c was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

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