Skip to content

Commit

Permalink
añadidos condicionales para verificar que el elemento no sea None en …
Browse files Browse the repository at this point in the history
…__init__.py, line 108. Y lib/emoji/core.py, line 181
  • Loading branch information
GerardKessler committed Dec 11, 2024
1 parent b81ba6b commit c1aa20e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion addon/appModules/whatsapp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def event_NVDAObject_init(self, obj):
obj.name= f'{obj.name} ({element.name})'
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:
if obj.name and self.remove_phone_number and hasattr(obj, 'name') and '+' in obj.name:
obj.name= sub(r'\+\d[\d\s\:\~\&\(\)-]{12,}', '', obj.name)
if self.remove_emojis:
obj.name= emoji.replace_emoji(obj.name, '')
Expand Down
4 changes: 3 additions & 1 deletion addon/appModules/whatsapp/lib/emoji/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,9 @@ def demojize(
tree = _get_search_tree()
result = []
i = 0
length = len(string)
length = 0
if string:
length = len(string)
while i < length:
consumed = False
char = string[i]
Expand Down
4 changes: 2 additions & 2 deletions buildVars.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def _(arg):
# Translators: Long description to be shown for this add-on on add-on information from add-ons manager
"addon_description": _("""Complemento que renombra botones sin etiqueta, añade atajos de teclado para funciones principales de la aplicación, y funciones de enfoque para una mejor interacción con la interfaz. Solo disponible para la versión UWP."""),
# version
"addon_version": "2.2.3",
"addon_version": "2.3.0",
# Author(s)
"addon_author": "Gerardo Kessler <[email protected]>",
# URL for the add-on documentation support
Expand All @@ -35,7 +35,7 @@ def _(arg):
# Minimum NVDA version supported (e.g. "2018.3.0", minor version is optional)
"addon_minimumNVDAVersion": "2023.1.0",
# Last NVDA version supported/tested (e.g. "2018.4.0", ideally more recent than minimum version)
"addon_lastTestedNVDAVersion": "2024.1.0",
"addon_lastTestedNVDAVersion": "2024.4.1",
# Add-on update channel (default is None, denoting stable releases,
# and for development releases, use "dev".)
# Do not change unless you know what you are doing!
Expand Down

0 comments on commit c1aa20e

Please sign in to comment.