Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/unlucky-rings-exist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"dmg-builder": patch
---

fix: update the `dmgbuild` hex regex for `backgroundColor` to be case insensitive
2 changes: 1 addition & 1 deletion packages/dmg-builder/vendor/dmgbuild/colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def to_rgb(self):

_ws_re = re.compile(r"\s+")
_token_re = re.compile(r"[A-Za-z_][A-Za-z0-9_]*")
_hex_re = re.compile(r"#([0-9a-f]{3}(?:[0-9a-f]{3})?)$")
_hex_re = re.compile(r"#([0-9a-f]{3}(?:[0-9a-f]{3})?)$", re.IGNORECASE)
_number_re = re.compile(r"[0-9]*(\.[0-9]*)")


Expand Down
2 changes: 1 addition & 1 deletion packages/dmg-builder/vendor/dmgbuild/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
badge = None


_hexcolor_re = re.compile(r"#[0-9a-f]{3}(?:[0-9a-f]{3})?")
_hexcolor_re = re.compile(r"#[0-9a-f]{3}(?:[0-9a-f]{3})?", re.IGNORECASE)

# The first element in the platform.mac_ver() tuple is a string containing the
# macOS version (e.g., '10.15.6'). Parse into an integer tuple.
Expand Down