From f9b88cbf93a355ee8a540a666278d97c1c7031fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Mon, 13 Jul 2026 17:18:00 +0400 Subject: [PATCH] =?UTF-8?q?v0.0.15:=20fix=20=5Fmd=5Ftolerant=5Fpattern=20?= =?UTF-8?q?=E2=80=94=20=D0=B2=D1=81=D0=B5=D0=B3=D0=B4=D0=B0,=20=D0=BD?= =?UTF-8?q?=D0=B5=20=D1=82=D0=BE=D0=BB=D1=8C=D0=BA=D0=BE=20=D0=BF=D1=80?= =?UTF-8?q?=D0=B8=20=D0=BF=D1=80=D0=BE=D0=BC=D0=B0=D1=85=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- drhider/replacer.py | 9 ++++----- site/app.py | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/drhider/replacer.py b/drhider/replacer.py index cdb40cc..d8565a0 100644 --- a/drhider/replacer.py +++ b/drhider/replacer.py @@ -66,11 +66,10 @@ def apply_replacements(text: str, mapping: Dict[str, str], sorted_keys: List[str new_result = re.sub(pattern, replacement, result) - # Фоллбэк: Markdown-жирность могла разорвать строку (**ООО **"**НУБЕС**") - if new_result == result: - md_pattern = _md_tolerant_pattern(original) - if md_pattern is not None: - new_result = re.sub(md_pattern, replacement, result) + # Фоллбэк: Markdown-жирность могла разорвать строку + md_pattern = _md_tolerant_pattern(original) + if md_pattern is not None: + new_result = re.sub(md_pattern, replacement, new_result) result = new_result diff --git a/site/app.py b/site/app.py index af46c87..986d8a9 100644 --- a/site/app.py +++ b/site/app.py @@ -20,7 +20,7 @@ if _sys_path_root not in sys.path: sys.path.insert(0, _sys_path_root) # Версия приложения (меняется при изменениях) -VERSION = "0.0.14" +VERSION = "0.0.15" def create_app():