Skip to content

Commit c3af390

Browse files
authored
fix: update the dmgbuild hex regex to be case insensitive (#9487)
1 parent c83f525 commit c3af390

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

.changeset/unlucky-rings-exist.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"dmg-builder": patch
3+
---
4+
5+
fix: update the `dmgbuild` hex regex for `backgroundColor` to be case insensitive

packages/dmg-builder/vendor/dmgbuild/colors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def to_rgb(self):
257257

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

263263

packages/dmg-builder/vendor/dmgbuild/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
badge = None
2626

2727

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

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

0 commit comments

Comments
 (0)