"Fossies" - the Fresh Open Source Software Archive

Member "node-v12.18.4-win-x86/node_modules/npm/node_modules/ajv/lib/dot/pattern.jst" (14 Feb 2020, 362 Bytes) of package /windows/www/node-v12.18.4-win-x86.zip:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 {{# def.definitions }}
    2 {{# def.errors }}
    3 {{# def.setupKeyword }}
    4 {{# def.$data }}
    5 
    6 {{
    7   var $regexp = $isData
    8                 ? '(new RegExp(' + $schemaValue + '))'
    9                 : it.usePattern($schema);
   10 }}
   11 
   12 if ({{# def.$dataNotType:'string' }} !{{=$regexp}}.test({{=$data}}) ) {
   13   {{# def.error:'pattern' }}
   14 } {{? $breakOnError }} else { {{?}}