Merge pull request #3873 from ankitaggarwal011/fix/removeComments-method-improvement
Temporary fix for bugs due to removeComments method
This commit is contained in:
@ -785,7 +785,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