mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 07:47:49 +00:00
Bump to v3.7.0.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
define(['../internal/isIterateeCall', '../internal/root', './trim'], function(isIterateeCall, root, trim) {
|
||||
|
||||
/** Used to detect hexadecimal string values. */
|
||||
var reHexPrefix = /^0[xX]/;
|
||||
var reHasHexPrefix = /^0[xX]/;
|
||||
|
||||
/** Used to detect and test for whitespace. */
|
||||
var whitespace = (
|
||||
@@ -59,7 +59,7 @@ define(['../internal/isIterateeCall', '../internal/root', './trim'], function(is
|
||||
radix = +radix;
|
||||
}
|
||||
string = trim(string);
|
||||
return nativeParseInt(string, radix || (reHexPrefix.test(string) ? 16 : 10));
|
||||
return nativeParseInt(string, radix || (reHasHexPrefix.test(string) ? 16 : 10));
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user