Skip to content

Commit d14b662

Browse files
committed
RomanNumbers, StringCompressor and StringFormatter are now private classes, only simple functions are exposed ass public api + isbn checking api
1 parent 70dbcfc commit d14b662

13 files changed

+1071
-773
lines changed

string_utils/_regex.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,3 +151,7 @@
151151
NO_LETTERS_OR_NUMBERS_RE = re.compile(r'[^\w\d]+|_+', re.IGNORECASE | re.UNICODE)
152152

153153
MARGIN_RE = re.compile(r'^[^\S\r\n]+')
154+
155+
LOCALE_RE = re.compile(r'^[a-z]{2}_[A-Z]{2}$')
156+
157+
INSENSITIVE_LOCALE_RE = re.compile(r'^[a-z]{2}_[a-z]{2}$', re.IGNORECASE)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy