Files
NapCatQQ/.pnpm-store/v3/files/fa/8edd562f29875374751446c79365501a036f9bd534a84a94e30619d552643fe071ed84b2d0814350ee886c6b22ba9c7c735d6f8b7cbebdaa970036db766b41
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

14 lines
326 B
Plaintext

'use strict'
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