Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
pattern is implied global on line 699 of validator.js #88
I've been using validator.js for a few months and finding it very useful. Thanks very much for making it available.
However, in running unit tests on my code with Mocha.js I think I have identified an implied global variable (pattern) in the function that begins on line 697 (Validator.prototype.isUUID).
With the source code for validator.js as is, Mocha warns me of a global variable leak which I can make go away by prefixing the first use of pattern with var.
Hope this is useful to know.