Website/lib/format-author.js

12 lines
301 B
JavaScript
Raw Normal View History

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