Skip to content

Commit

Permalink
Fix bug in POSIX alpha range (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser authored Jan 21, 2021
1 parent b6392a3 commit 7957571
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions docs/src/markdown/about/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 8.0.1

- **FIX**: Small bug in `[:alpha:]` range.

## 8.0

- **NEW**: `WcMatch`'s `on_init` hook now only accepts `kwargs` and not `args`.
Expand Down
2 changes: 1 addition & 1 deletion wcmatch/__meta__.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,5 +186,5 @@ def parse_version(ver, pre=False):
return Version(major, minor, micro, release, pre, post, dev)


__version_info__ = Version(8, 0, 0, "final")
__version_info__ = Version(8, 0, 1, "final")
__version__ = __version_info__._get_canonical()
8 changes: 4 additions & 4 deletions wcmatch/posix.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Posix Properties."""
unicode_posix_properties = {
"^alnum": "\x00-\x2f\x3a-\x40\x5c\x5b-\x60\x7b-\U0010ffff",
"^alpha": "\x00-\x40\x5a-\x60\x7a-\U0010ffff",
"^alpha": "\x00-\x40\x5b-\x60\x7b-\U0010ffff",
"^ascii": "\x80-\U0010ffff",
"^blank": "\x00-\x08\x0a-\x1f\x21-\U0010ffff",
"^cntrl": "\x20-\x5c\x7e\x80-\U0010ffff",
Expand All @@ -15,7 +15,7 @@
"^word": "\x00-\x2f\x3a-\x40\x5c\x5b-\x5e\x60\x7b-\U0010ffff",
"^xdigit": "\x00-\x2f\x3a-\x40\x47-\x60\x67-\U0010ffff",
"alnum": "\x30-\x39\x41-\x5a\x61-\x7a",
"alpha": "\x41-\x59\x61-\x79",
"alpha": "\x41-\x5a\x61-\x7a",
"ascii": "\x00-\x7f",
"blank": "\x09\x20",
"cntrl": "\x00-\x1f\x7f",
Expand All @@ -32,7 +32,7 @@

ascii_posix_properties = {
"^alnum": "\x00-\x2f\x3a-\x40\x5c\x5b-\x60\x7b-\xff",
"^alpha": "\x00-\x40\x5a-\x60\x7a-\xff",
"^alpha": "\x00-\x40\x5b-\x60\x7b-\xff",
"^ascii": "\x80-\xff",
"^blank": "\x00-\x08\x0a-\x1f\x21-\xff",
"^cntrl": "\x20-\x5c\x7e\x80-\xff",
Expand All @@ -46,7 +46,7 @@
"^word": "\x00-\x2f\x3a-\x40\x5c\x5b-\x5e\x60\x7b-\xff",
"^xdigit": "\x00-\x2f\x3a-\x40\x47-\x60\x67-\xff",
"alnum": "\x30-\x39\x41-\x5a\x61-\x7a",
"alpha": "\x41-\x59\x61-\x79",
"alpha": "\x41-\x5a\x61-\x7a",
"ascii": "\x00-\x7f",
"blank": "\x09\x20",
"cntrl": "\x00-\x1f\x7f",
Expand Down

0 comments on commit 7957571

Please sign in to comment.