mirror of
https://github.com/certd/certd.git
synced 2026-04-15 05:00:52 +08:00
fix: telegram 修复消息内存在横杠无法发出的bug
This commit is contained in:
@@ -60,7 +60,7 @@ export class TelegramNotification extends BaseNotification {
|
||||
|
||||
replaceText(text: string) {
|
||||
// .*()<> 等都需要用\\进行替换
|
||||
return text.replace(/[\\.*()<>]/g, '\\$&');
|
||||
return text.replace(/[\\.*()<>-]/g, '\\$&');
|
||||
}
|
||||
async send(body: NotificationBody) {
|
||||
if (!this.botToken || !this.chatId) {
|
||||
|
||||
Reference in New Issue
Block a user