avoid loop
This commit is contained in:
parent
d2e05200da
commit
9ef4bdd0c1
1 changed files with 2 additions and 4 deletions
|
@ -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, ' ');
|
||||
};
|
||||
|
||||
/*@
|
||||
|
|
Loading…
Reference in a new issue