From 727d67d1c0e16a546d043dc37d933bc7107520fa Mon Sep 17 00:00:00 2001 From: cccs-jh <63320703+cccs-jh@users.noreply.github.com> Date: Thu, 9 Feb 2023 16:11:24 -0500 Subject: [PATCH] Fix for charcode_xml's regex --- deobs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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