From 451a1c1fcc28c90005f62025496f8e7160472d6d Mon Sep 17 00:00:00 2001 From: Ren Tatsumoto Date: Wed, 5 Jun 2024 16:43:46 +0300 Subject: [PATCH] filter out ' and | in names --- kitsunekko_tools/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitsunekko_tools/common.py b/kitsunekko_tools/common.py index f35cbd9..1e84863 100644 --- a/kitsunekko_tools/common.py +++ b/kitsunekko_tools/common.py @@ -12,7 +12,7 @@ def what(self) -> str: raise NotImplementedError() -RE_FILENAME_PROHIBITED = re.compile(r"[ _\\\n\t\r#\[\]{}<>^*/:`?]+", flags=re.MULTILINE | re.IGNORECASE) +RE_FILENAME_PROHIBITED = re.compile(r"[ _\\\n\t\r#\[\]{}<>^*/:`?'|]+", flags=re.MULTILINE | re.IGNORECASE) def fs_name_strip(name: str) -> str: