From aa2f26b9c541294a5f4553e7d9a3c0df435fafcc Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Mon, 27 Feb 2023 23:32:17 -0500
Subject: [PATCH] This works better when you compare against the right string.
:)
---
build_categories.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/build_categories.php b/build_categories.php
index 8a9c212..034bc51 100755
--- a/build_categories.php
+++ b/build_categories.php
@@ -70,7 +70,7 @@ function build_category_lists($srcdir)
foreach ($cats as $c) {
if ($from_format == "mediawiki") {
$c = preg_replace('/^\[\[(.*?)\]\]$/', '$1', trim($c));
- } else if ($from_format == "md") {
+ } else if ($from_format == "markdown_github") {
$c = preg_replace('/^\[(.*?)\]\(.*?\)$/', '$1', trim($c));
}
if (!isset($categories[$c])) {