Bump to v3.0.1.

This commit is contained in:
jdalton
2015-01-29 20:56:54 -08:00
parent 5379c1996b
commit 891d0482c6
14 changed files with 34 additions and 27 deletions

View File

@@ -1,4 +1,3 @@
import baseToString from './baseToString';
import repeat from '../string/repeat';
import root from './root';
@@ -27,7 +26,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);
}