fix: provider() unicode-digit crash + phantom() short-value false-mask (v0.3.2)
provider() used str.isdigit(), which accepts unicode digit lookalikes (e.g. superscript ²) that int() can't parse, crashing on digit-only-looking input; _digits() now filters on isdecimal()+isascii() so only real ASCII digits pass through. phantom() revealed the entire value for len <= 10 while still looking masked (first6+last4 fully covers or double-covers short strings); those now fully mask instead. Also compresses several essay-length docstrings (retry, masking, paths) to a line plus the real nuance, with zero behavior change, and bumps the README install pin. Signed-off-by: disqualifier <dev@disqualifier.me>
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
||||
|
||||
[project]
|
||||
name = "commons"
|
||||
version = "0.3.1"
|
||||
version = "0.3.2"
|
||||
description = "small stdlib-based sync helpers: time/timezone deltas, dotted-path dict access, display masking, ip/address tooling, and retry/backoff"
|
||||
requires-python = ">=3.10"
|
||||
dependencies = []
|
||||
|
||||
Reference in New Issue
Block a user