您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

11 行
312 B

4 年前
  1. const Range = require('../classes/range')
  2. const 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. }
  11. module.exports = validRange