better regex for pulling titles out of c-like comments
This commit is contained in:
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…
x
Reference in New Issue
Block a user