slightly better test for variable
parent
b7d9998b9b
commit
75dd4a5926
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue