From 03603ea35352769063610b55e3b6b770e3a98f34 Mon Sep 17 00:00:00 2001 From: Timon Kruiper Date: Mon, 28 Oct 2019 19:54:21 +0100 Subject: [PATCH] Std docs: Fix a js error that would cause some function to be not rendered --- lib/std/special/docs/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/special/docs/main.js b/lib/std/special/docs/main.js index 74049f8546..e0d6cdaf05 100644 --- a/lib/std/special/docs/main.js +++ b/lib/std/special/docs/main.js @@ -1369,7 +1369,7 @@ line.text = line.text.substr(1); } else if (line.text.match(/\d+\./)) { - const match = line.match(/(\d+)\./); + const match = line.text.match(/(\d+)\./); line.type = "ul"; line.text = line.text.substr(match[0].length); line.ordered_number = Number(match[1].length);