@ -15,7 +15,7 @@ coverPhoto.getDefaultProfileCover = function (uid) {
function getCover(type, id) {
if (meta.config[type + ':defaultCovers']) {
var covers = meta.config[type + ':defaultCovers'].split(/\s*?,\s*?/g);
var covers = meta.config[type + ':defaultCovers'].trim().split(/[\s,]+/g);
if (typeof id === 'string') {
id = (id.charCodeAt(0) + id.charCodeAt(1)) % covers.length;