Bump to v4.16.2.

This commit is contained in:
John-David Dalton
2016-09-25 13:40:14 -07:00
parent 5425ef9a59
commit ab95e7dde7
28 changed files with 128 additions and 47 deletions

View File

@@ -1,6 +1,9 @@
import root from './_root.js';
import toString from './toString.js';
/** Used to match leading and trailing whitespace. */
var reTrimStart = /^\s+/;
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeParseInt = root.parseInt;
@@ -34,7 +37,7 @@ function parseInt(string, radix, guard) {
} else if (radix) {
radix = +radix;
}
return nativeParseInt(toString(string), radix || 0);
return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0);
}
export default parseInt;