fix: .doc теперь обрабатывается (обфускация + md в архиве)
Deploy drhider / validate (push) Waiting to run

This commit is contained in:
2026-07-16 12:16:54 +04:00
parent 87a6df45c5
commit cb6274a887
2 changed files with 9 additions and 3 deletions
+8 -2
View File
@@ -98,8 +98,14 @@ class TwoPassObfuscator:
obf_content = content # По умолчанию — без изменений
if fname.endswith('.doc'):
# .doc — бинарный формат, пока не поддерживается
pass
# .doc — конвертируется через liberta, обрабатывается как .docx
md_text = all_texts.get(fname, '')
replaced = replacer.apply_replacements(
md_text, self._mapping, self._sorted_keys
)
md_name = os.path.splitext(fname)[0] + '.md'
obf_content = replaced.encode('utf-8')
fname = md_name
else:
# Все форматы → Markdown → замена в тексте
md_text = all_texts.get(fname, '')
+1 -1
View File
@@ -20,7 +20,7 @@ if _sys_path_root not in sys.path:
sys.path.insert(0, _sys_path_root)
# Версия приложения (меняется при изменениях)
VERSION = "0.0.30"
VERSION = "0.0.31"
def create_app():