[fix] pattern property should be cast to regexp if provided a string
[fix] pattern property should be cast to regexp if provided a string

RaghavendhraK/revalidator,twitchard/revalidator,freakycue/schema.js,jonathanmarvens/flatiron-revalidator,okv/conform.js,flatiron/revalidator,pavelvlasov/schema.js