flatiron/revalidator — Issue #7: I can't use formats as regex
Author: yeikos
Created: 2012-02-07 00:30:54+00:00
State: open

To fix it I must do this:

var Scheme = require('revalidator');

Scheme.validate.formatExtensions = Scheme.validate.formats;
Scheme.validate.defaults.formatExtensions = true;