Temporary fix to bugs due to removeComments method-closes #3763
This commit is contained in:
@ -767,7 +767,7 @@ var scrapeTests = function(userJavaScript) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
function removeComments(userJavaScript) {
|
function removeComments(userJavaScript) {
|
||||||
var regex = new RegExp(/(\/\*[^(\*\/)]*\*\/)|\/\/[^\n]*/g);
|
var regex = new RegExp(/(\/\*[^(\*\/)]*\*\/)|([ \n]\/\/[^\n]*)/g);
|
||||||
return userJavaScript.replace(regex, '');
|
return userJavaScript.replace(regex, '');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user