From b81ba6bc62513f5a39af17a3167dc02a3d64338f Mon Sep 17 00:00:00 2001 From: GerardKessler Date: Sat, 11 May 2024 07:52:33 -0300 Subject: [PATCH] agregados parentesis a la expresion regular de eliminacion de numeros telefonicos del mensaje. Por sukiletxe --- addon/appModules/whatsapp/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addon/appModules/whatsapp/__init__.py b/addon/appModules/whatsapp/__init__.py index f415bdd..b7f092e 100644 --- a/addon/appModules/whatsapp/__init__.py +++ b/addon/appModules/whatsapp/__init__.py @@ -106,7 +106,7 @@ def event_NVDAObject_init(self, obj): if getattr(obj, 'UIAAutomationId', 'BubbleListItem') != 'BubbleListItem' or not self.remove_phone_number and not self.remove_emojis: return if self.remove_phone_number and '+' in obj.name: - obj.name= sub(r'\+\d[\d\s\:\~\&-]{12,}', '', obj.name) + obj.name= sub(r'\+\d[\d\s\:\~\&\(\)-]{12,}', '', obj.name) if self.remove_emojis: obj.name= emoji.replace_emoji(obj.name, '')