diff --git a/www/code/main.js b/www/code/main.js index ee4fd2f0f..1ee726097 100644 --- a/www/code/main.js +++ b/www/code/main.js @@ -253,6 +253,7 @@ define([ var clike = /^\s*(\/\*|\/\/)(.*)?(\*\/)*$/; if (clike.test(line)) { line.replace(clike, function (a, one, two) { + if (!two) { return; } text = two.replace(/\*\/\s*$/, '').trim(); }); return true;