avoid loop

This commit is contained in:
rolux 2012-06-18 09:14:45 +02:00
parent d2e05200da
commit 9ef4bdd0c1

View file

@ -397,10 +397,8 @@ Ox.formatDateRange = function(start, end, utc) {
strings[1] = strings[1].split(', ').pop();
}
}
return strings.map(function(string) {
// %e is a space-padded day
return string.replace(' ', ' ');
}).join(' - ');
// %e is a space-padded day
return strings.join(' - ').replace(/ /g, ' ');
};
/*@