first commit

This commit is contained in:
2024-04-18 09:30:05 +05:30
commit ee5c224767
809 changed files with 93350 additions and 0 deletions
+11
View File
@@ -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