better regex for pulling titles out of c-like comments

pull/1/head
ansuz 9 years ago
parent 5131f47cca
commit a58f58535b

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

Loading…
Cancel
Save