mirror of
https://github.com/joelwmale/webhook-action.git
synced 2024-11-25 17:06:52 +01:00
14 lines
348 B
Text
14 lines
348 B
Text
{{# 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 { {{?}}
|