fix reference to undefined variable

This commit is contained in:
ansuz
2016-11-07 12:10:00 +01:00
parent 67bf41627d
commit b7d9998b9b

View File

@@ -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;