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

9 lines
227 B
Plaintext

// src/common/regex.ts
var isPatternNumeric = (pattern) => {
const numericPattern = /(^|\W)[0-9](\W|$)/;
return numericPattern.test(pattern) && !/[^\d\^$\[\]\(\)\*\+\-\.\|]/.test(pattern);
};
export {
isPatternNumeric
};