1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Tools: Fixed formatting of git changelog

This commit is contained in:
Laurent Cozic 2020-06-06 16:31:31 +01:00
parent faf5eac806
commit c9f1715899

View File

@ -210,7 +210,8 @@ function formatCommitMessage(msg, author, options) {
}
let authorMd = null;
if (author && (author.login || author.name) && author.login !== 'laurent22') {
const isLaurent = author.login === 'laurent22' || author.email === 'laurent22@users.noreply.github.com';
if (author && (author.login || author.name) && !isLaurent) {
if (author.login) {
const escapedLogin = author.login.replace(/\]/g, '');
authorMd = `[@${escapedLogin}](https://github.com/${encodeURI(author.login)})`;