From 0e4d5fe59f6031a5fb46ba3ee16e4979d1f2a35b Mon Sep 17 00:00:00 2001 From: Egor fureunoir Gorbunov Date: Sat, 21 Jun 2025 23:16:34 +0300 Subject: [PATCH] Features: 1) Update regex pattern in slug generator for improved handling of underscores and word characters; Fixes: None; Extra: None; --- core/utils/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/utils/db.py b/core/utils/db.py index 07c5ee30..8f8283fc 100644 --- a/core/utils/db.py +++ b/core/utils/db.py @@ -26,7 +26,7 @@ def unicode_slugify_function(content): max_length=88, word_boundary=True, save_order=True, - regex_pattern=r"[^A-Za-z0-9-]+", + regex_pattern=r"(?:[^\w-]|_)+", separator="-", )