Sindbad~EG File Manager

Current Path : /home/nicedoo/www/wp-content/plugins/profile-builder/assets/lib/codemirror/addon/lint/
Upload File :
Current File : /home/nicedoo/www/wp-content/plugins/profile-builder/assets/lib/codemirror/addon/lint/json-lint.js

// Depends on jsonlint.js from https://github.com/zaach/jsonlint

CodeMirror.registerHelper("lint", "json", function(text) {
  var found = [];
  jsonlint.parseError = function(str, hash) {
    var loc = hash.loc;
    found.push({from: CodeMirror.Pos(loc.first_line - 1, loc.first_column),
                to: CodeMirror.Pos(loc.last_line - 1, loc.last_column),
                message: str});
  };
  try { jsonlint.parse(text); }
  catch(e) {}
  return found;
});
CodeMirror.jsonValidator = CodeMirror.lint.json; // deprecated

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists