From 2a8c63f162da5d0b8e53dd894d62677027ab80ad Mon Sep 17 00:00:00 2001 From: Fokko Driesprong Date: Thu, 30 May 2024 13:43:15 +0200 Subject: [PATCH] Avoid replacing dots for underscores Resolves #123 --- mkdocs_monorepo_plugin/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkdocs_monorepo_plugin/parser.py b/mkdocs_monorepo_plugin/parser.py index 4a80d5d..57e7b9a 100644 --- a/mkdocs_monorepo_plugin/parser.py +++ b/mkdocs_monorepo_plugin/parser.py @@ -257,7 +257,7 @@ def getDocsDir(self): def getAlias(self): alias = self.navYaml["site_name"] - regex = '^[a-zA-Z0-9_\-/]+$' # noqa: W605 + regex = '^[a-zA-Z0-9_\.\-/]+$' # noqa: W605 if re.match(regex, alias) is None: alias = slugify(self.navYaml["site_name"])