$90 GRAYBYTE WORDPRESS FILE MANAGER $66

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/alt-nodejs11/root/usr/lib/node_modules/npm/node_modules.bundled/ajv/lib/dotjs/

HOME
Current File : /opt/alt/alt-nodejs11/root/usr/lib/node_modules/npm/node_modules.bundled/ajv/lib/dotjs//pattern.js
'use strict';
module.exports = function generate_pattern(it, $keyword, $ruleType) {
  var out = ' ';
  var $lvl = it.level;
  var $dataLvl = it.dataLevel;
  var $schema = it.schema[$keyword];
  var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
  var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
  var $breakOnError = !it.opts.allErrors;
  var $data = 'data' + ($dataLvl || '');
  var $isData = it.opts.$data && $schema && $schema.$data,
    $schemaValue;
  if ($isData) {
    out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';
    $schemaValue = 'schema' + $lvl;
  } else {
    $schemaValue = $schema;
  }
  var $regexp = $isData ? '(new RegExp(' + $schemaValue + '))' : it.usePattern($schema);
  out += 'if ( ';
  if ($isData) {
    out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'string\') || ';
  }
  out += ' !' + ($regexp) + '.test(' + ($data) + ') ) {   ';
  var $$outStack = $$outStack || [];
  $$outStack.push(out);
  out = ''; /* istanbul ignore else */
  if (it.createErrors !== false) {
    out += ' { keyword: \'' + ('pattern') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { pattern:  ';
    if ($isData) {
      out += '' + ($schemaValue);
    } else {
      out += '' + (it.util.toQuotedString($schema));
    }
    out += '  } ';
    if (it.opts.messages !== false) {
      out += ' , message: \'should match pattern "';
      if ($isData) {
        out += '\' + ' + ($schemaValue) + ' + \'';
      } else {
        out += '' + (it.util.escapeQuotes($schema));
      }
      out += '"\' ';
    }
    if (it.opts.verbose) {
      out += ' , schema:  ';
      if ($isData) {
        out += 'validate.schema' + ($schemaPath);
      } else {
        out += '' + (it.util.toQuotedString($schema));
      }
      out += '         , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
    }
    out += ' } ';
  } else {
    out += ' {} ';
  }
  var __err = out;
  out = $$outStack.pop();
  if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */
    if (it.async) {
      out += ' throw new ValidationError([' + (__err) + ']); ';
    } else {
      out += ' validate.errors = [' + (__err) + ']; return false; ';
    }
  } else {
    out += ' var err = ' + (__err) + ';  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
  }
  out += '} ';
  if ($breakOnError) {
    out += ' else { ';
  }
  return out;
}

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
31 Aug 2024 8.02 AM
root / root
0755
README.md
0.146 KB
19 Oct 2021 4.47 PM
root / root
0644
_limit.js
6.682 KB
19 Oct 2021 4.47 PM
root / root
0644
_limitItems.js
2.533 KB
19 Oct 2021 4.47 PM
root / root
0644
_limitLength.js
2.652 KB
19 Oct 2021 4.47 PM
root / root
0644
_limitProperties.js
2.57 KB
19 Oct 2021 4.47 PM
root / root
0644
allOf.js
1.248 KB
19 Oct 2021 4.47 PM
root / root
0644
anyOf.js
2.783 KB
19 Oct 2021 4.47 PM
root / root
0644
const.js
2.024 KB
19 Oct 2021 4.47 PM
root / root
0644
contains.js
3.209 KB
19 Oct 2021 4.47 PM
root / root
0644
custom.js
9.551 KB
19 Oct 2021 4.47 PM
root / root
0644
dependencies.js
7.417 KB
19 Oct 2021 4.47 PM
root / root
0644
enum.js
2.521 KB
19 Oct 2021 4.47 PM
root / root
0644
format.js
5.466 KB
19 Oct 2021 4.47 PM
root / root
0644
items.js
5.742 KB
19 Oct 2021 4.47 PM
root / root
0644
multipleOf.js
2.635 KB
19 Oct 2021 4.47 PM
root / root
0644
not.js
3.262 KB
19 Oct 2021 4.47 PM
root / root
0644
oneOf.js
2.742 KB
19 Oct 2021 4.47 PM
root / root
0644
pattern.js
2.521 KB
19 Oct 2021 4.47 PM
root / root
0644
properties.js
21.344 KB
19 Oct 2021 4.47 PM
root / root
0644
propertyNames.js
3.442 KB
19 Oct 2021 4.47 PM
root / root
0644
ref.js
4.567 KB
19 Oct 2021 4.47 PM
root / root
0644
required.js
11.959 KB
19 Oct 2021 4.47 PM
root / root
0644
uniqueItems.js
2.804 KB
19 Oct 2021 4.47 PM
root / root
0644
validate.js
18.036 KB
19 Oct 2021 4.47 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF