allow x-2 in config

Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
This commit is contained in:
aramissennyeydd
2025-06-10 11:53:15 -04:00
parent ff2361826d
commit b3a705f3cd
3 changed files with 3 additions and 2 deletions
@@ -85,7 +85,7 @@ export class EnvConfigSource implements ConfigSource {
const ENV_PREFIX = 'APP_CONFIG_';
// Update the same pattern in config package if this is changed
const CONFIG_KEY_PART_PATTERN = /^[\w-_]+$/i;
const CONFIG_KEY_PART_PATTERN = /^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$/i;
/**
* Read runtime configuration from the environment.