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