From 8157c6e20cac99e3cbcc2e513a18f7073a21b07f Mon Sep 17 00:00:00 2001 From: Ankit Aggarwal Date: Sat, 24 Oct 2015 12:45:30 +0530 Subject: [PATCH] Temporary fix to bugs due to removeComments method-closes #3763 --- client/commonFramework.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/commonFramework.js b/client/commonFramework.js index c100edd30d..a8d8e8486e 100644 --- a/client/commonFramework.js +++ b/client/commonFramework.js @@ -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, ''); }