1
0
mirror of https://github.com/firstBitMarksistskaya/jenkins-lib.git synced 2024-12-04 10:34:42 +02:00

Исправлено экранирование _

This commit is contained in:
Nikita Fedkin 2022-05-22 18:38:52 +03:00 committed by GitHub
parent c14d85c20f
commit 39910ba1f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -224,7 +224,7 @@ class TelegramNotification implements Serializable {
@NonCPS
private static String escapeStringForMarkdownV2(String incoming) {
return incoming.replace('_', '\\-')
return incoming.replace('_', '\\_')
.replace('*', '\\*')
.replace('[', '\\[')
.replace(']', '\\]')