Skip to content

Commit 9d881e1

Browse files
committed
Merge branch 'upstream_master' into dev
2 parents c45af04 + a9f9bec commit 9d881e1

File tree

7 files changed

+11
-6
lines changed

7 files changed

+11
-6
lines changed

CHANGES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# ColorHelper
22

3+
## 4.0.1
4+
5+
- **FIX**: Fix built-in custom color class match return. This caused files
6+
using one of the built-in color classes to fail in creating previews.
7+
38
## 4.0.0
49

510
> **BREAKING CHANGE**

custom/ahex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def match(cls, string, start=0, fullmatch=True):
1818
m = cls.MATCH.match(string, start)
1919
if m is not None and (not fullmatch or m.end(0) == len(string)):
2020
return cls.split_channels(m.group(0)), m.end(0)
21-
return None, None
21+
return None
2222

2323
@classmethod
2424
def translate_channel(cls, channel, value):

custom/ass_abgr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def match(cls, string: str, start: int = 0, fullmatch: bool = True):
1818
m = cls.MATCH.match(string, start)
1919
if m is not None and (not fullmatch or m.end(0) == len(string)):
2020
return cls.split_channels(m.group("color")), m.end(0)
21-
return None, None
21+
return None
2222

2323
@classmethod
2424
def translate_channel(cls, channel: int, value: str):

custom/hex_0x.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def match(cls, string, start=0, fullmatch=True):
2727
m = cls.MATCH.match(string, start)
2828
if m is not None and (not fullmatch or m.end(0) == len(string)):
2929
return cls.split_channels(m.group(0)), m.end(0)
30-
return None, None
30+
return None
3131

3232
@classmethod
3333
def translate_channel(cls, channel, value):

custom/tmtheme.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ def match(cls, string, start=0, fullmatch=True):
762762
string = name2hex(string[m.start(0):m.end(0)])
763763
if string is not None:
764764
return cls.split_channels(string), m.end(0)
765-
return None, None
765+
return None
766766

767767

768768
class ColorSRGBX11(Color):

docs/src/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
mkdocs_pymdownx_material_extras>=1.5.4
1+
mkdocs_pymdownx_material_extras>=1.5.7
22
mkdocs-git-revision-date-localized-plugin
33
mkdocs-minify-plugin
44
pyspelling

support.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import webbrowser
66
import re
77

8-
__version__ = "4.0.0"
8+
__version__ = "4.0.1"
99
__pc_name__ = 'ColorHelper'
1010

1111
CSS = '''

0 commit comments

Comments
 (0)