From b7d9998b9b7a12cb2b93f7f3fe082b364ed30179 Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 7 Nov 2016 12:10:00 +0100 Subject: [PATCH] fix reference to undefined variable --- www/code/main.js | 1 + 1 file changed, 1 insertion(+) 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;