X-Git-Url: https://git.ladys.computer/Gitweb/blobdiff_plain/429ff9b6360dd0fed94740858ce90d024777b211e31b830915e51aafcf1e23ca..367f1aa76008d203d3ef9f2ec5580a750d45c854823d513a9e45bcd5b6caa8f9:/gitweb.js?ds=sidebyside diff --git a/gitweb.js b/gitweb.js index d1b64b2..1b0d1f9 100644 --- a/gitweb.js +++ b/gitweb.js @@ -566,8 +566,11 @@ function handleLine(commit, group) { if (group.numlines >= 2) { var fragment = document.createDocumentFragment(); var br = document.createElement("br"); - var text = document.createTextNode( - commit.author.match(/\b([A-Z])\B/g).join('')); + var match = commit.author.match(/\b([A-Z])\B/g); + if (match) { + var text = document.createTextNode( + match.join('')); + } if (br && text) { var elem = fragment || td_sha1; elem.appendChild(br);