From b6a70535400b221815bc682e7b0f398f3a879ad3 Mon Sep 17 00:00:00 2001 From: Andreas Bielawski Date: Mon, 27 Jun 2016 21:26:40 +0200 Subject: [PATCH] Markdown-Escape im Gitub-Plugin --- otouto/plugins/github.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/otouto/plugins/github.lua b/otouto/plugins/github.lua index a29328e..bcee3a1 100644 --- a/otouto/plugins/github.lua +++ b/otouto/plugins/github.lua @@ -31,9 +31,9 @@ end function github:send_github_data(data) if not data.owner then return nil end - local name = '*'..data.name..'*' - local description = '_'..data.description..'_' - local owner = data.owner.login + local name = '*'..utilities.md_escape(data.name)..'*' + local description = '_'..utilities.md_escape(data.description)..'_' + local owner = utilities.md_escape(data.owner.login) local clone_url = data.clone_url if data.language == nil or data.language == "" then language = '' @@ -57,7 +57,7 @@ end function github:send_gh_commit_data(gh_code, gh_commit_sha, data) if not data.committer then return nil end local committer = data.committer.name - local message = data.message + local message = utilities.md_escape(data.message) local text = '`'..gh_code..'@'..gh_commit_sha..'` von *'..committer..'*:\n'..message return text end