Temporary fix to bugs due to removeComments method-closes #3763

This commit is contained in:
Ankit Aggarwal
2015-10-24 12:45:30 +05:30
parent 92868736c0
commit 8157c6e20c

View File

@ -767,7 +767,7 @@ var scrapeTests = function(userJavaScript) {
};
function removeComments(userJavaScript) {
var regex = new RegExp(/(\/\*[^(\*\/)]*\*\/)|\/\/[^\n]*/g);
var regex = new RegExp(/(\/\*[^(\*\/)]*\*\/)|([ \n]\/\/[^\n]*)/g);
return userJavaScript.replace(regex, '');
}