mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
![]() The `util.replace_control_chars()` function was overly strict, and would replace every non-ASCII character with "_". This included both control characters, as well as normal characters in a non-English alphabet. Relax these restrictions by checking each character and deciding if it's a Unicode control character, using the `unicodedata` Python package. With this change, emojis and non-English letters are now allowed. |
||
---|---|---|
.. | ||
gui | ||
isolation_provider | ||
test_docs | ||
test_docs_compressed | ||
test_docs_external | ||
test_docs_large@0068ffcb67 | ||
__init__.py | ||
conftest.py | ||
test_cli.py | ||
test_document.py | ||
test_large_set.py | ||
test_ocr.py | ||
test_settings.py | ||
test_util.py |