diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-07-27 10:05:23 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-07-27 10:05:23 +0200 |
| commit | 5bf66662a9bdd62c5bccab15e607cd95cfb8fcab (patch) | |
| tree | 39a1a4629749056191c05dfd899f931701b7acf3 /srcs/wordpress/wp-includes/js/codemirror/fakejshint.js | |
| parent | 5afd237bbd22028b85532b8c0b3fcead49a00764 (diff) | |
| download | ft_server-5bf66662a9bdd62c5bccab15e607cd95cfb8fcab.tar.gz ft_server-5bf66662a9bdd62c5bccab15e607cd95cfb8fcab.tar.bz2 ft_server-5bf66662a9bdd62c5bccab15e607cd95cfb8fcab.zip | |
Removed wordpress and phpmyadmin, my server doesn't handle it well and it brings shame on my famillyHEADmaster
Diffstat (limited to 'srcs/wordpress/wp-includes/js/codemirror/fakejshint.js')
| -rw-r--r-- | srcs/wordpress/wp-includes/js/codemirror/fakejshint.js | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/srcs/wordpress/wp-includes/js/codemirror/fakejshint.js b/srcs/wordpress/wp-includes/js/codemirror/fakejshint.js deleted file mode 100644 index 6cc33ce..0000000 --- a/srcs/wordpress/wp-includes/js/codemirror/fakejshint.js +++ /dev/null @@ -1,43 +0,0 @@ -// 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 - }; -}; - - |
