Files
WechatExplorer/src/shared/debug-flags.ts
T
Wxw-Gu 7c8b45a24a feat: 修复定时日报错误通知微信机器人功能
增加定时日报debug
修复定时日报历史头像显示并区分定时日报标题
2026-09-02 15:01:03 +08:00

9 lines
203 B
TypeScript

const truthyValues = new Set(['1', 'true', 'yes', 'on'])
export const isTruthyDebugFlag = (value: unknown): boolean =>
truthyValues.has(
String(value ?? '')
.trim()
.toLowerCase()
)