From 45ceece1a91ace4366ad4475108882254ed241aa Mon Sep 17 00:00:00 2001 From: Maxime Bajeux Date: Mon, 14 Jun 2021 01:06:54 +0200 Subject: [PATCH] feat(application): Invalid environment variable form validation when creating an application (#5019) --- .../views/applications/create/createApplication.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/kubernetes/views/applications/create/createApplication.html b/app/kubernetes/views/applications/create/createApplication.html index 58537b1e4..13ff1455a 100644 --- a/app/kubernetes/views/applications/create/createApplication.html +++ b/app/kubernetes/views/applications/create/createApplication.html @@ -162,7 +162,7 @@ class="form-control" ng-model="envVar.Name" ng-change="ctrl.onChangeEnvironmentName()" - ng-pattern="/^[a-zA-Z]([-_a-zA-Z0-9]*[a-zA-Z0-9])?$/" + ng-pattern="/^[-._a-zA-Z][-._a-zA-Z0-9]*$/" placeholder="foo" ng-disabled="ctrl.formValues.Containers.length > 1" required @@ -207,8 +207,8 @@

Environment variable name is required.

This field must consist alphanumeric characters, '-' or '_', start with an alphabetic - character, and end with an alphanumeric character (e.g. 'my-var', or 'MY_VAR123').

This field must consist of alphabetic characters, digits, '_', '-', or '.', and must + not start with a digit (e.g. 'my.env-name', or 'MY_ENV.NAME', or 'MyEnvName1'.