Website/lib/format-name.js
2015-12-05 18:44:51 -05:00

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, "&nbsp;")+"</span>"
} else {
return author.replace(/ /g, "&nbsp;")
}
}
}