change the signature of Ox.pad to match Ox.truncate

This commit is contained in:
rolux 2012-06-04 11:08:38 +02:00
commit a5c6747b57
10 changed files with 62 additions and 29 deletions

View file

@ -570,7 +570,7 @@ Ox.range = function() {
sort[value] = mappedValue.toLowerCase()
.replace(/^\W+/, '')
.replace(/\d+/g, function(match) {
return Ox.pad(match, length);
return Ox.pad(parseInt(match), length);
});
Ox.forEach(['a', 'an', 'the'], function(article) {
var length;