diff --git a/deobs.py b/deobs.py index 8644257..7003cd9 100644 --- a/deobs.py +++ b/deobs.py @@ -89,7 +89,7 @@ def charcode_unicode(text: bytes) -> Optional[bytes]: @staticmethod def charcode_xml(text: bytes) -> Optional[bytes]: """ Replace XML escape sequences with the corresponding character """ - output = regex.sub(rb'(?i)&#x([a-z0-9]{1,6};', DeobfuScripter.codepoint_sub, text) + output = regex.sub(rb'(?i)&#x([a-z0-9]{1,6});', DeobfuScripter.codepoint_sub, text) output = regex.sub(rb'&#([0-9]{1,7});', partial(DeobfuScripter.codepoint_sub, base=10), output) return output if output != text else None