Fix a few regex warnings

This commit is contained in:
DarkPhoenix
2024-11-09 08:40:55 +01:00
parent fbadcf0af6
commit 401fc671d4
3 changed files with 3 additions and 3 deletions

View File

@@ -115,7 +115,7 @@ class CharacterEntityEditor(EntityEditor):
sChar = Character.getInstance()
if entity.alphaCloneID:
trimmed_name = re.sub('[ \(\u03B1\)]+$', '', name)
trimmed_name = re.sub('[ \\(\u03B1\\)]+$', '', name)
sChar.rename(entity, trimmed_name)
else:
sChar.rename(entity, name)