References Fixerd

This commit is contained in:
Luis Fernando Molina committed 2018-05-06 21:42:55 +02:00
1 parent 45c41273b5
commit e522d9302c
575 files changed
+13920 -20071

No files matched your search

+2 -2
View File
@@ -1,5 +1,5 @@
'use strict';
module.exports = function generate_pattern(it, $keyword) {
module.exports = function generate_pattern(it, $keyword, $ruleType) {
var out = ' ';
var $lvl = it.level;
var $dataLvl = it.dataLevel;
@@ -8,7 +8,7 @@ module.exports = function generate_pattern(it, $keyword) {
var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
var $breakOnError = !it.opts.allErrors;
var $data = 'data' + ($dataLvl || '');
var $isData = it.opts.v5 && $schema && $schema.$data,
var $isData = it.opts.$data && $schema && $schema.$data,
$schemaValue;
if ($isData) {
out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';