Server IP : 149.255.58.128 / Your IP : 216.73.216.78
System : Linux cloud516.thundercloud.uk 5.14.0-427.26.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 17 15:51:13 EDT 2024 x86_64
PHP Version : 8.2.28
Disable Function : allow_url_include, apache_child_terminate, apache_setenv, exec, passthru, pcntl_exec, posix_kill, posix_mkfifo, posix_getpwuid, posix_setpgid, posix_setsid, posix_setuid, posix_setgid, posix_seteuid, posix_setegid, posix_uname, proc_close, proc_get_status, proc_open, proc_terminate, shell_exec, show_source, system
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Upload Files :
Command :
Current File : /home/wheelch2/public_html/wp-includes/js/codemirror//fakejshint.js
// JSHINT has some GPL Compatability issues, so we are faking it out and using esprima for validation
// Based on https://github.com/jquery/esprima/blob/gh-pages/demo/validate.js which is MIT licensed
var fakeJSHINT = new function() {
var syntax, errors;
var that = this;
this.data = [];
this.convertError = function( error ){
return {
line: error.lineNumber,
character: error.column,
reason: error.description,
code: 'E'
};
};
this.parse = function( code ){
try {
syntax = window.esprima.parse(code, { tolerant: true, loc: true });
errors = syntax.errors;
if ( errors.length > 0 ) {
for ( var i = 0; i < errors.length; i++) {
var error = errors[i];
that.data.push( that.convertError( error ) );
}
} else {
that.data = [];
}
} catch (e) {
that.data.push( that.convertError( e ) );
}
};
};
window.JSHINT = function( text ){
fakeJSHINT.parse( text );
};
window.JSHINT.data = function(){
return {
errors: fakeJSHINT.data
};
};
Name |
Size |
Last Modified |
Owner / Group |
Permissions |
Options |
.. | -- | February 19 2024 02:18:53 | 1032 / wheelch2 | 0755 | |
| | | | | |
codemirror.min.css | 15.526 KB | September 13 2017 10:38:48 | 1032 / wheelch2 | 0644 | |
codemirror.min.js | 571.693 KB | September 13 2017 10:38:48 | 1032 / wheelch2 | 0644 | |
csslint.js | 358.173 KB | October 25 2019 21:08:08 | 1032 / wheelch2 | 0644 | |
esprima.js | 276.513 KB | January 23 2018 06:59:32 | 1032 / wheelch2 | 0644 | |
fakejshint.js | 0.979 KB | January 23 2018 06:59:32 | 1032 / wheelch2 | 0644 | |
htmlhint-kses.js | 0.961 KB | September 13 2017 10:38:48 | 1032 / wheelch2 | 0644 | |
htmlhint.js | 17.319 KB | September 13 2017 10:38:48 | 1032 / wheelch2 | 0644 | |
jsonlint.js | 15.81 KB | September 13 2017 10:38:48 | 1032 / wheelch2 | 0644 | |