Skip to content

Commit

Permalink
Allow dashes in config section names configured by env
Browse files Browse the repository at this point in the history
  • Loading branch information
nazywam authored and psrok1 committed Apr 17, 2023
1 parent 455905e commit c582044
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion karton/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def _load_from_env(self) -> None:
for name, value in os.environ.items():
# Load env variables named KARTON_[section]_[key]
# to match ConfigParser structure
result = re.fullmatch(r"KARTON_([A-Z0-9]+)_([A-Z0-9_]+)", name)
result = re.fullmatch(r"KARTON_([A-Z0-9-]+)_([A-Z0-9_]+)", name)

if not result:
continue
Expand Down

0 comments on commit c582044

Please sign in to comment.