2015-12-04 22:42:41 -05:00
|
|
|
module.exports = format;
|
|
|
|
|
|
|
|
function format(lab){
|
|
|
|
return function(author) {
|
|
|
|
if(lab.findIndex(function(member, idx, ignore) { return author == member }) >= 0) {
|
2015-12-05 18:44:51 -05:00
|
|
|
return "<span class='lab_member'>"+author.replace(/ /g, " ")+"</span>"
|
2015-12-04 22:42:41 -05:00
|
|
|
} else {
|
2015-12-05 18:44:51 -05:00
|
|
|
return author.replace(/ /g, " ")
|
2015-12-04 22:42:41 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|