Skip to content

Commit

Permalink
fix: Typos in Slack/Teams notifrication log messages
Browse files Browse the repository at this point in the history
Fixes #794
  • Loading branch information
Göran Sander committed Sep 21, 2023
1 parent 705ee19 commit e28b715
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/slack_notification.js
Original file line number Diff line number Diff line change
Expand Up @@ -429,8 +429,8 @@ async function sendSlack(slackConfig, templateContext, msgType) {
if (msgType === 'reload') {
// Escape any back slashes in the script logs
const regExpText = /(?!\\n)\\{1}/gm;
globals.logger.debug(`TEAMSNOTIF: Script log head escaping: ${regExpText.exec(templateContext.scriptLogHead)}`);
globals.logger.debug(`TEAMSNOTIF: Script log tail escaping: ${regExpText.exec(templateContext.scriptLogTail)}`);
globals.logger.debug(`SLACKNOTIF: Script log head escaping: ${regExpText.exec(templateContext.scriptLogHead)}`);
globals.logger.debug(`SLACKNOTIF: Script log tail escaping: ${regExpText.exec(templateContext.scriptLogTail)}`);

templateContext.scriptLogHead = templateContext.scriptLogHead.replace(regExpText, '\\\\');
templateContext.scriptLogTail = templateContext.scriptLogTail.replace(regExpText, '\\\\');
Expand Down

0 comments on commit e28b715

Please sign in to comment.