Skip to content

Commit 013b0f2

Browse files
committed
chore: rebase on main, fix formatting, bump version to 0.22.7
1 parent ad39e99 commit 013b0f2

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.22.7
2+
3+
### Enhancements
4+
- **Speed up `standardize_quotes` by 144%**: Replace loop-based character replacement with `str.translate()` using a pre-computed translation table for single-pass O(n) processing.
5+
16
## 0.22.6
27

38
### Fixes

unstructured/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.22.6" # pragma: no cover
1+
__version__ = "0.22.7" # pragma: no cover

unstructured/metrics/text_extraction.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,5 +224,3 @@ def standardize_quotes(text: str) -> str:
224224
str: The text with standardized quotes.
225225
"""
226226
return text.translate(_TRANSLATION_TABLE)
227-
228-

0 commit comments

Comments
 (0)