chriso/node-validator — pull request #96 by baryshev (2012-07-15 12:33:12+00:00)
Title: Fix RegExp type checking

Сondition 'if (typeof pattern !== 'function') {' is true even when the pattern is a regular expression, because typeof [RegExp] === 'object', not 'function'. I changed this condition to pass only if pattern is RegExp.