module.exports = "(function(t,e,n){var r=n(54),i=t.exports=r.patterns.RegexpSchema=r.extend({initialize:function(t){this.regexp=t},errors:function(t){var e;return Object(t)instanceof String?this.regexp&&!this.regexp.test(t)&&(e=t+\" is not matched with RegExp -> \"+this.regexp):e=t+\" is not a String\",e||!1},validate:function(t){return Object(t)instanceof String&&(!this.regexp||this.regexp.test(t))},toJSON:function(){var t=r.prototype.toJSON.call(this);return t.type=\"string\",this.regexp&&(t.pattern=this.regexp.toString(),t.pattern=t.pattern.substr(1,t.pattern.length-2)),t}});r.fromJSON.def((function(t){if(t&&\"string\"===t.type)return\"pattern\"in t?new i(RegExp(\"^\"+t.pattern+\"$\")):\"minLength\"in t||\"maxLength\"in t?new i(RegExp(\"^.{\"+[t.minLength||0,t.maxLength].join(\",\")+\"}$\")):new i})),r.fromJS.def((function(t){if(t instanceof RegExp)return new i(t)}))})";