mirror of
https://gitea.com/actions/setup-python.git
synced 2024-11-23 10:39:35 +01:00
15 lines
348 B
Text
15 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 { {{?}}
|