 c177363a19
			
		
	
	c177363a19
	
	
	
		
			
			🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
		
			
				
	
	
		
			15 lines
		
	
	
		
			348 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			348 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| {{# def.definitions }}
 | |
| {{# def.errors }}
 | |
| {{# def.setupKeyword }}
 | |
| {{# def.$data }}
 | |
| 
 | |
| {{
 | |
|   var $regexp = $isData
 | |
|                 ? '(new RegExp(' + $schemaValue + '))'
 | |
|                 : it.usePattern($schema);
 | |
| }}
 | |
| 
 | |
| if ({{# def.$dataNotType:'string' }} !{{=$regexp}}.test({{=$data}}) ) {
 | |
|   {{# def.error:'pattern' }}
 | |
| } {{? $breakOnError }} else { {{?}}
 |