Skip to content

Commit

Permalink
Fix #216
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser committed Apr 12, 2022
1 parent e0e8085 commit 19cfd27
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# ColorHelper

## 4.3.1

- **NEW**: Upgrade underlying `coloraide` library to fix a color parsing
bug.

## 4.3.0

- **NEW**: Upgrade `coloraide`, along with various improvements brings
Expand Down
2 changes: 1 addition & 1 deletion docs/src/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mkdocs_pymdownx_material_extras>=1.6
mkdocs_pymdownx_material_extras>=2.0
mkdocs-git-revision-date-localized-plugin
mkdocs-minify-plugin
pyspelling
2 changes: 1 addition & 1 deletion lib/coloraide/__meta__.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,5 +192,5 @@ def parse_version(ver: str) -> Version:
return Version(major, minor, micro, release, pre, post, dev)


__version_info__ = Version(0, 15, 0, "final", post=1)
__version_info__ = Version(0, 15, 1, "final")
__version__ = __version_info__._get_canonical()
3 changes: 2 additions & 1 deletion lib/coloraide/css/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,8 @@ def parse_css(
if value is not None:
return (value[:3], value[3]), m.end(0)
else:
return parse_rgb_channels(string[m.end(1) + 1:m.end(0) - 1], cspace.BOUNDS), m.end(0)
offset = m.start(0)
return parse_rgb_channels(string[m.end(1) - offset + 1:m.end(0) - offset - 1], cspace.BOUNDS), m.end(0)
else:
m = CSS_MATCH[cspace.NAME].match(string, start)
if m is not None and (not fullmatch or m.end(0) == len(string)):
Expand Down
4 changes: 0 additions & 4 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,6 @@ markdown_extensions:
- pymdownx.superfences:
- pymdownx.highlight:
extend_pygments_lang:
- name: php-inline
lang: php
options:
startinline: true
- name: pycon3
lang: pycon
options:
Expand Down
2 changes: 1 addition & 1 deletion support.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import webbrowser
import re

__version__ = "4.3.0"
__version__ = "4.3.1"
__pc_name__ = 'ColorHelper'

CSS = '''
Expand Down

0 comments on commit 19cfd27

Please sign in to comment.