Skip to content

Commit

Permalink
Merge pull request #12 from sukiletxe/patch-1
Browse files Browse the repository at this point in the history
Evitar eliminar números telefónicos precedidos por @
  • Loading branch information
GerardKessler authored Jan 19, 2024
2 parents 2910874 + 8ba40e1 commit 0d839ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/appModules/whatsapp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def event_NVDAObject_init(self, obj):
try:
if obj.UIAAutomationId != 'BubbleListItem' or not self.remove_phone_number and not self.remove_emojis: return
if self.remove_phone_number:
obj.name = sub(r'\+\d[()\d\s‬-]{12,}', '', obj.name)
obj.name = sub(r'[^@]\+\d[()\d\s‬-]{12,}', '', obj.name)
if self.remove_emojis:
print(emoji.emoji_count(obj.name))
obj.name = emoji.replace_emoji(obj.name, '')
Expand Down

0 comments on commit 0d839ce

Please sign in to comment.