Bump to v3.0.1.

This commit is contained in:
jdalton
2015-01-26 20:44:45 -08:00
parent f9606b394c
commit bbec03c4d5
14 changed files with 64 additions and 47 deletions

View File

@@ -1,5 +1,4 @@
var baseToString = require('./baseToString'),
repeat = require('../string/repeat');
var repeat = require('../string/repeat');
/** Native method references. */
var ceil = Math.ceil;
@@ -26,7 +25,7 @@ function createPad(string, length, chars) {
return '';
}
var padLength = length - strLength;
chars = chars == null ? ' ' : baseToString(chars);
chars = chars == null ? ' ' : (chars + '');
return repeat(chars, ceil(padLength / chars.length)).slice(0, padLength);
}