Index: lams_build/conf/etherpad/etherpad-lite/node_modules/ep_stats/static/js/stats.js =================================================================== diff -u -r3cd4201e8c6d28d1539c24fe5d2efba5f680251e -r62e82c7396362b49c0a47738201018b36792299f --- lams_build/conf/etherpad/etherpad-lite/node_modules/ep_stats/static/js/stats.js (.../stats.js) (revision 3cd4201e8c6d28d1539c24fe5d2efba5f680251e) +++ lams_build/conf/etherpad/etherpad-lite/node_modules/ep_stats/static/js/stats.js (.../stats.js) (revision 62e82c7396362b49c0a47738201018b36792299f) @@ -169,7 +169,7 @@ classes = classes.split(" "); var number = $(this).text().replace(/\s/g,"").length; // get length without whitespace $.each(classes, function(k, spanClass){ - if( classes.indexOf("author") !== -1){ // if an author class exists on this span + if(spanClass.indexOf("author") !== -1){ // if an author class exists on this span results[ spanClass ] = number; }else{ results[ spanClass ] = results[ spanClass] + number;