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