File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ sub process-grep-line($line, %commits) { # 🙈
73
73
74
74
take ~ $ repo # used for stats in PrettyLink
75
75
}
76
- $ text = shorten $ text , 300 ; # do not print too long lines
76
+ $ text = shorten $ text || ‘ ’ , 300 ; # do not print too long lines
77
77
$ text = markdown-escape $ text ;
78
78
$ text ~~ s :g / “\c[ESC][1;31m” (.*? ) [ “\c[ESC][m” | $ ] /<b >{$0 }<\/b >/ ; # TODO get rid of \/ ?
79
79
@@ -103,7 +103,7 @@ multi method irc-to-me($msg) {
103
103
my % commits = ();
104
104
my $ gist = “ | File | Code |\n |--|--|\n ” ;
105
105
my $ stats = gather {
106
- $ gist ~ = $ result <output >. split ( “ \n ” ) . map ({process-grep-line $ _ , % commits }). join : “ \n ” ;
106
+ $ gist ~ = $ result <output >. lines . map ({process-grep-line $ _ , % commits }). join : “ \n ” ;
107
107
}
108
108
my $ total = $ stats . elems ;
109
109
my $ modules = $ stats . Set . elems ;
You can’t perform that action at this time.
0 commit comments