From 2ddb5cb04cbb699121fd0a02f10fc7a70a2f7183 Mon Sep 17 00:00:00 2001 From: ktyl Date: Mon, 13 Mar 2023 23:21:08 +0000 Subject: [PATCH] update directory regex --- build/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/index.py b/build/index.py index febbc86..6a86af3 100644 --- a/build/index.py +++ b/build/index.py @@ -18,7 +18,7 @@ if len(sys.argv) < 2: # posts are arguments from index 1 onwards posts = sys.argv[1:] -dir_pattern = re.compile("(.+)/(blog\/.+\.html)") +dir_pattern = re.compile("(.+)\/(\d{4}\/\d+\/\d+\/.+\.html)") path_pattern = re.compile("(.+)\/(\d{4})\/(\d{1,2})\/(\d{1,2})\/(.+).html") title_pattern = re.compile("

(.+)

")