slightly better test for variable

pull/1/head
ansuz 2016-11-07 12:11:01 +01:00
parent b7d9998b9b
commit 75dd4a5926
1 changed files with 1 additions and 1 deletions

View File

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