12 lines
303 B
JavaScript
12 lines
303 B
JavaScript
module.exports = format;
|
|
|
|
function format(lab){
|
|
return function(author) {
|
|
if(lab.findIndex(function(member, idx, ignore) { return author == member }) >= 0) {
|
|
return "<span class='lab_member'>"+author.replace(/ /g, " ")+"</span>"
|
|
} else {
|
|
return author.replace(/ /g, " ")
|
|
}
|
|
}
|
|
}
|