fix: use npm install (#77)
This commit is contained in:
1 parent
084daf99a8
commit
90ced52839
771 files changed
+307
-127
No files matched your search
+11
@@ -0,0 +1,11 @@
|
||||
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
|
||||
Reference in new issue
Block a user