diff --git a/src/plugins/auto_reply/index.ts b/src/plugins/auto_reply/index.ts index 6150e5c..0394b22 100644 --- a/src/plugins/auto_reply/index.ts +++ b/src/plugins/auto_reply/index.ts @@ -135,7 +135,7 @@ const init: PluginInit = (init_app) => { } text = text.trim(); try { - text === 'none' || /^[uU][tT][cC][+-][\d]+(\.5)?$/.test(text) || dayjs().tz(text); + text === 'none' || /^[uU][tT][cC][+-][\d][\d]?(\.5)?$/.test(text) || dayjs().tz(text); } catch (e) { if (e instanceof RangeError) { void app.bot.sendMessage(msg.chat.id, '无法识别时区名', {