twitst4tz

twitter statistics web application
Log | Files | Refs | README | LICENSE

pattern.jst (348B)


      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 { {{?}}