Allow dots in environment variable names (#323)

This commit is contained in:
Alex Coté authored and GitHub committed 2025-12-28 13:53:43 -08:00
1 parent b516ca877b
commit 7742e7a54c
2 files changed
+18 -2

No files matched your search

+1 -1
View File
@@ -74,7 +74,7 @@ export function EnvironmentEditor({ environment, hideName, className, setRef }:
const validateName = useCallback((name: string) => {
// Empty just means the variable doesn't have a name yet and is unusable
if (name === '') return true;
return name.match(/^[a-z_][a-z0-9_-]*$/i) != null;
return name.match(/^[a-z_][a-z0-9_.-]*$/i) != null;
}, []);
const valueType = !isEncryptionEnabled && valueVisibility.value ? 'text' : 'password';