dist/melonjs.js
function minify(src) {
       // remove comments
       src = src.replace(/\/\*[\s\S]*?\*\/|([^\\:]|^)\/\/.*$/gm, "$1"); // Remove leading and trailing whitespace from lines

       src = src.replace(/(\\n\s+)|(\s+\\n)/g, ""); // Remove line breaks

       src = src.replace(/(\\r|\\n)+/g, ""); // Remove unnecessary whitespace

       src = src.replace(/\s*([;,[\](){}\\\/\-+*|^&!=<>?~%])\s*/g, "$1");
       return src;
     }
function minify(src) {
       // remove comments
       src = src.replace(/\/\*[\s\S]*?\*\/|([^\\:]|^)\/\/.*$/gm, "$1"); // Remove leading and trailing whitespace from lines

       src = src.replace(/(\\n\s+)|(\s+\\n)/g, ""); // Remove line breaks

       src = src.replace(/(\\r|\\n)+/g, ""); // Remove unnecessary whitespace

       src = src.replace(/\s*([;,[\](){}\\\/\-+*|^&!=<>?~%])\s*/g, "$1");
       return src;
     }
function minify ( src ) { // remove comments src = src . replace ( / \/\*[\s\S]*?\*\/|([^\\:]|^)\/\/.*$ / gm , "$1" ) ; // Remove leading and trailing whitespace from lines src = src . replace ( / (\\n\s+)|(\s+\\n) / g , "" ) ; // Remove line breaks src = src . replace ( / (\\r|\\n)+ / g , "" ) ; // Remove unnecessary whitespace src = src . replace ( / \s*([;,[\](){}\\\/\-+*|^&!=<>?~%])\s* / g , "$1" ) ; return src ; }
clean the given source from space, comments, etc...
@private
clean the given source from space comments etc ...