Skip to content

Commit 72af4ba

Browse files
committed
Merge pull request resume#231 from joaosa/master
Fix processing empty descriptions for private repositories
2 parents e866610 + 825763d commit 72af4ba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

js/githubresume.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,8 @@ var run = function() {
419419
var emojiPattern = /:([a-z0-9_\+\-]+):/g;
420420
// no, it's not really a pattern
421421
var imagePattern = "<img width='20' height='20' src='https://assets-cdn.github.com/images/icons/emoji/$1.png' />";
422-
repo.info.description = repo.info.description.replace(emojiPattern, imagePattern);
422+
var description = repo.info.description;
423+
repo.info.description = description ? description.replace(emojiPattern, imagePattern) : description;
423424
view = {
424425
name: repo.info.name,
425426
date: date,

0 commit comments

Comments
 (0)