Skip to content

Commit 68e1b63

Browse files
committed
fix regex
1 parent 0f2f51b commit 68e1b63

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
9+
## [13.9.3] - 2024-10-22
10+
11+
### Fixed
12+
13+
- Fixed broken regex that may have resulted in poor performance.
14+
815
## [13.9.2] - 2024-10-04
916

1017
### Fixed

rich/cells.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from ._cell_widths import CELL_WIDTHS
88

99
# Regex to match sequence of the most common character ranges
10-
_is_single_cell_widths = re.compile("^[\u0020-\u006f\u00a0\u02ff\u0370-\u0482]*$").match
10+
_is_single_cell_widths = re.compile("^[\u0020-\u007f\u00a0\u02ff\u0370-\u0482]*$").match
1111

1212

1313
@lru_cache(4096)

0 commit comments

Comments
 (0)