Skip to content

Commit

Permalink
Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
cccs-jh committed Feb 9, 2023
2 parents 332da61 + 37cbd35 commit 780b15a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,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

Expand Down

0 comments on commit 780b15a

Please sign in to comment.