From ba6c9645fb8b457522a553f86fcd89eb1195f5fe Mon Sep 17 00:00:00 2001 From: rr- Date: Tue, 24 May 2016 10:30:43 +0200 Subject: [PATCH] config: don't let tags start with '-' This breaks search engine and negating tags. --- config.yaml.dist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.yaml.dist b/config.yaml.dist index a6c48c8..1436693 100644 --- a/config.yaml.dist +++ b/config.yaml.dist @@ -36,7 +36,7 @@ limits: posts_per_page: 40 max_comment_length: 5000 -tag_name_regex: ^:?[a-zA-Z0-9_-]+$ +tag_name_regex: ^[a-zA-Z0-9_:][a-zA-Z0-9_-]*$ tag_category_name_regex: ^.{1,}$ default_rank: regular