better regex for pulling titles out of c-like comments

pull/1/head
ansuz 2016-08-03 17:11:41 +02:00
parent 5131f47cca
commit a58f58535b
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@ define([
}
// lines including a c-style comment are also valuable
var clike = /^\s*(\/\*|\/\/)(.*?)$/;
var clike = /^\s*(\/\*|\/\/)(.*?)(\*\/)$/;
if (clike.test(line)) {
line.replace(clike, function (a, one, two) {
text = two;