browser: display 'js api' category as 'js'
[sheet.git] / browser.plp
index 9a865d4f0ff8a577b20c191af9604b08030c9fa3..258999e834364ce4cf4b4a07278fa1ff07d38783 100644 (file)
@@ -192,6 +192,7 @@ sub saytitlecol {
 
        for ($row->{categories}) {
                my $cell = $_ ? lc $_->[0] : '-';
+               $cell =~ s/ api$//;  # trim unessential fluff in 'js api'
                printf '<th title="%s">%s', join(' + ', @$_), $cell;
        }