chriso/node-validator — Issue #60: Global Leak : pattern
Author: craftgear
Created: 2012-02-24 04:58:53+00:00
State: open

Hi, I found a missing var in validators.js while I was writing test with mocha.

There is no pattern variable in arguments, so must be declared in the function.

at line 104

```
isuuid: function(str, version) {
++ var pattern = ''
if (version == 3 || version == 'v3') {

```

Regards.