mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2025-12-27 03:06:45 +01:00
Fix entity removal to recoginize hex correctly.
This commit is contained in:
parent
af65982c9a
commit
ed004e8637
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ def _unirepl(match):
|
|||
return unichr(value)
|
||||
|
||||
def _replaceNumberEntities(data):
|
||||
p = re.compile(r'&#(x?)(\d+);')
|
||||
p = re.compile(r'&#(x?)([0-9a-fA-F]+);')
|
||||
return p.sub(_unirepl, data)
|
||||
|
||||
def _replaceNotEntities(data):
|
||||
|
|
|
|||
Loading…
Reference in a new issue