Added already existing code for further development
This commit is contained in:
Marces Zastrow
2024-12-18 10:59:28 +01:00
commit dab55442be
2034 changed files with 264398 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