Skip to content

Commit

Permalink
Fix typo (hexademical)
Browse files Browse the repository at this point in the history
  • Loading branch information
sufyanAbbasi committed Dec 17, 2024
1 parent 294748f commit fc34c44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geemap/map_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ def _normalize_color_to_hex(self, color: Union[str, tuple]) -> str:
except:
raise ValueError(f"Unable to convert rgb value to hex: {color}")
elif re.search(r"^(?:[0-9a-fA-F]{3}){1,2}(?:[0-9a-fA-F]{1,2})?$", color):
# Add a # for hexademical strings of length 3 or 6, with optional
# Add a # for hexadecimal strings of length 3 or 6, with optional
# fourth alpha.
return f"#{color}"
return color
Expand Down

0 comments on commit fc34c44

Please sign in to comment.