Website/lib/format-name.js

12 lines
303 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) {
2015-12-05 18:44:51 -05:00
return "<span class='lab_member'>"+author.replace(/ /g, "&nbsp;")+"</span>"
2015-12-04 22:42:41 -05:00
} else {
2015-12-05 18:44:51 -05:00
return author.replace(/ /g, "&nbsp;")
2015-12-04 22:42:41 -05:00
}
}
}