mirror of
https://github.com/simonw/datasette.git
synced 2026-09-15 04:54:17 +02:00
Redact configuration keys case-insensitively
This commit is contained in:
parent
e949ae46de
commit
22c601b3d0
1 changed files with 1 additions and 1 deletions
|
|
@ -1744,7 +1744,7 @@ def redact_keys(original: dict, key_patterns: Iterable) -> dict:
|
|||
return {
|
||||
k: (
|
||||
redact(v)
|
||||
if not any(pattern in k for pattern in key_patterns)
|
||||
if not any(pattern in k.casefold() for pattern in key_patterns)
|
||||
else "***"
|
||||
)
|
||||
for k, v in data.items()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue