| {{# def.definitions }} | |
| {{# def.errors }} | |
| {{# def.setupKeyword }} | |
| {{# def.$data }} | |
| {{ | |
| var $regExpCode = it.opts.regExp ? 'regExp' : 'new RegExp'; | |
| }} | |
| {{? $isData }} | |
| var {{=$valid}} = true; | |
| try { | |
| {{=$valid}} = {{=$regExpCode}}({{=$schemaValue}}).test({{=$data}}); | |
| } catch(e) { | |
| {{=$valid}} = false; | |
| } | |
| if ({{# def.$dataNotType:'string' }} !{{=$valid}}) { | |
| {{??}} | |
| {{ | |
| var $regexp = it.usePattern($schema); | |
| }} | |
| if ({{# def.$dataNotType:'string' }} !{{=$regexp}}.test({{=$data}}) ) { | |
| {{?}} | |
| {{# def.error:'pattern' }} | |
| } {{? $breakOnError }} else { {{?}} | |
Xet Storage Details
- Size:
- 576 Bytes
- Xet hash:
- 852353c43d816772ce8162824889e7c227d53c466bca874baabcdd46a6cf4f11
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.