From b60cdcdf066407336fbc69015b1622d4437b921f Mon Sep 17 00:00:00 2001 From: elkowar <5300871+elkowar@users.noreply.github.com> Date: Sun, 25 Oct 2020 17:39:29 +0100 Subject: [PATCH] Fix replace in build-docs script --- gen-docs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen-docs.js b/gen-docs.js index e97c160..36b7f71 100644 --- a/gen-docs.js +++ b/gen-docs.js @@ -75,7 +75,7 @@ function printDocs(vars, docs) { return x; }) .map((x) => printWidget(x)) - .map((x) => x.replace(/\$\w+/, (x) => vars[x.replace("$", "")])) + .map((x) => x.replace(/\$\w+/g, (x) => vars[x.replace("$", "")])) .join("\n\n"); console.log(output); }