commit 59f6db5473fa85ca32f1df4ec8543d80e42a4b22
parent 8e15157a4ed4aa6a386a7c36e82f23c1197d5937
Author: Drew DeVault <sir@cmpwn.com>
Date: Wed, 21 Apr 2021 11:01:14 -0400
gen-docs: fix module name regex
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/gen-docs b/scripts/gen-docs
@@ -2,8 +2,8 @@
# Yes, I am entirely aware that this is a hack
modules=$(awk '
/^modules="/ { sub(/.*=\"/, ""); gsub(/_/, "::"); print $1; mods = 1 }
-/^[a-z_]+$/ { if (mods == 1) { gsub(/_/, "::"); print $1 } }
-/^[a-z]+"$/ { if (mods == 1) { mods = 0; sub(/"/, ""); gsub(/_/, "::"); print $1 } }
+/^[a-z][a-z0-9_]+$/ { if (mods == 1) { gsub(/_/, "::"); print $1 } }
+/^[a-z][a-z0-9_]+"$/ { if (mods == 1) { mods = 0; sub(/"/, ""); gsub(/_/, "::"); print $1 } }
' < scripts/gen-stdlib)
mkdir -p docs/html/