fix regex

This commit is contained in:
Will McGugan 2024-10-22 15:37:12 +01:00
parent 0f2f51b872
commit 68e1b6386d
2 changed files with 8 additions and 1 deletions

View File

@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [13.9.3] - 2024-10-22
### Fixed
- Fixed broken regex that may have resulted in poor performance.
## [13.9.2] - 2024-10-04
### Fixed

View File

@ -7,7 +7,7 @@ from typing import Callable
from ._cell_widths import CELL_WIDTHS
# Regex to match sequence of the most common character ranges
_is_single_cell_widths = re.compile("^[\u0020-\u006f\u00a0\u02ff\u0370-\u0482]*$").match
_is_single_cell_widths = re.compile("^[\u0020-\u007f\u00a0\u02ff\u0370-\u0482]*$").match
@lru_cache(4096)