fix(core): don't change unicode characters
This commit is contained in:
1 parent
6eaab5bc5d
commit
6b2c92e367
6 files changed
+101
-29
No files matched your search
@@ -9,8 +9,10 @@ def req(**kw):
|
||||
return SimpleNamespace(**base)
|
||||
|
||||
|
||||
def test_sanitize_removes_forbidden_chars():
|
||||
assert sanitize('A<b>:c/d\\e|f?g*h"') == "Abcdefgh"
|
||||
def test_sanitize_replaces_forbidden_chars():
|
||||
assert sanitize("Die drei ???") == "Die drei ???"
|
||||
assert sanitize("a/b") == "a⧸b"
|
||||
assert "\x01" not in sanitize("a\x01b")
|
||||
|
||||
|
||||
def test_ebook_template():
|
||||
|
||||
Reference in new issue
Block a user