mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 10:07:48 +00:00
Improve reIsUint to filter strings like '0001' and add tests.
This commit is contained in:
committed by
John-David Dalton
parent
7e726735ba
commit
c7ef030ef5
@@ -132,7 +132,7 @@
|
||||
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
||||
|
||||
/** Used to detect unsigned integer values. */
|
||||
var reIsUint = /^\d+$/;
|
||||
var reIsUint = /^(?:\d|[1-9]\d+)$/;
|
||||
|
||||
/** Used to match latin-1 supplementary letters (excluding mathematical operators). */
|
||||
var reLatin1 = /[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g;
|
||||
|
||||
Reference in New Issue
Block a user