From a58f58535bfd962257d45c65018ad6db5c00cf36 Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 3 Aug 2016 17:11:41 +0200 Subject: [PATCH] better regex for pulling titles out of c-like comments --- www/code/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/code/main.js b/www/code/main.js index e9dcc3614..350c7c6d4 100644 --- a/www/code/main.js +++ b/www/code/main.js @@ -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;