chriso/node-validator — pull request #122 by andyburke (2012-10-17 05:57:07+00:00)
Title: Check for 'undefined' being checked...

I hit a bug in my code where I was accidentally passing undefined to check, but instead of throwing the error I expected, I was getting a crash on str.length check. This avoids that crash and, at least I think, provides expected behavior if passing undefined.