From 7957571fecd976dd5a2f7777d31ac60bb2aa8394 Mon Sep 17 00:00:00 2001 From: Isaac Muse Date: Thu, 21 Jan 2021 13:38:15 -0700 Subject: [PATCH] Fix bug in POSIX alpha range (#149) --- docs/src/markdown/about/changelog.md | 4 ++++ wcmatch/__meta__.py | 2 +- wcmatch/posix.py | 8 ++++---- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/docs/src/markdown/about/changelog.md b/docs/src/markdown/about/changelog.md index b815e54c..5a13b3c9 100644 --- a/docs/src/markdown/about/changelog.md +++ b/docs/src/markdown/about/changelog.md @@ -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`. diff --git a/wcmatch/__meta__.py b/wcmatch/__meta__.py index b441df47..b5a836ad 100644 --- a/wcmatch/__meta__.py +++ b/wcmatch/__meta__.py @@ -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() diff --git a/wcmatch/posix.py b/wcmatch/posix.py index ea41ce39..b3b10538 100644 --- a/wcmatch/posix.py +++ b/wcmatch/posix.py @@ -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", @@ -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", @@ -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", @@ -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",