v0.0.15: fix _md_tolerant_pattern — всегда, не только при промахе
Deploy drhider / validate (push) Waiting to run
Deploy drhider / validate (push) Waiting to run
This commit is contained in:
+4
-5
@@ -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
|
||||
|
||||
|
||||
+1
-1
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user