This commit is contained in:
Guilhem Saurel 2023-08-01 13:00:15 +02:00
parent 451a7a8de0
commit cfe9ddf529

View File

@ -49,7 +49,12 @@ def github(data, headers):
def gitlab_gchat(data, headers):
"""Pretty-print a gitlab notification preformatted for Google Chat."""
data["body"] = re.sub("<(.*?)\\|(.*?)>", "[\\2](\\1)", data["body"], re.MULTILINE)
data["body"] = re.sub(
"<(.*?)\\|(.*?)>",
"[\\2](\\1)",
data["body"],
flags=re.MULTILINE,
)
return data