Bump to v4.16.2.

This commit is contained in:
John-David Dalton
2016-09-25 13:37:46 -07:00
parent 81b88ae10c
commit 2f8450b523
28 changed files with 212 additions and 74 deletions

View File

@@ -1,5 +1,8 @@
define(['./_root', './toString'], function(root, toString) {
/** 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;
@@ -33,7 +36,7 @@ define(['./_root', './toString'], function(root, toString) {
} else if (radix) {
radix = +radix;
}
return nativeParseInt(toString(string), radix || 0);
return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0);
}
return parseInt;