You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constchoice=awaitwindow.showErrorMessage('Cannot parse login command in clipboard. Please open cluster dashboard and select `Copy login command` from user name dropdown in the upper right corner. Copy full login command to clipboard. Switch back to VSCode window and press `Login to Sandbox` button again.',
if(!validationMessage)validationMessage=OpenShiftItem.validateMatches(`Not a valid ${message}. Please use lower case alphanumeric characters or '-', start with an alphabetic character, and end with an alphanumeric character`,value);
47
-
if(!validationMessage)validationMessage=OpenShiftItem.lengthName(`${message} should be between 2-63 characters`,value,offset ? offset.length : 0);
if(!validationMessage)validationMessage=NameValidator.validateMatches(`Not a valid ${message}. Please use lower case alphanumeric characters or '-', start with an alphabetic character, and end with an alphanumeric character`,value);
46
+
if(!validationMessage)validationMessage=NameValidator.lengthName(`${message} should be between 2-63 characters`,value,offset ? offset.length : 0);
48
47
if(!validationMessage){
49
48
try{
50
49
constexistingResources=awaitdata;
@@ -64,9 +63,9 @@ export default class OpenShiftItem {
if(!validationMessage)validationMessage=OpenShiftItem.validateRFC1123DNSLabel(`Not a valid ${message}. Please enter name that starts with an alphanumeric character, use lower case alphanumeric characters or '-' and end with an alphanumeric character`,value);
69
-
if(!validationMessage)validationMessage=OpenShiftItem.lengthName(`${message} should be between 2-63 characters`,value,offset ? offset.length : 0);
if(!validationMessage)validationMessage=NameValidator.validateRFC1123DNSLabel(`Not a valid ${message}. Please enter name that starts with an alphanumeric character, use lower case alphanumeric characters or '-' and end with an alphanumeric character`,value);
68
+
if(!validationMessage)validationMessage=NameValidator.lengthName(`${message} should be between 2-63 characters`,value,offset ? offset.length : 0);
70
69
if(!validationMessage){
71
70
try{
72
71
constexistingProjects=awaitdata;
@@ -81,45 +80,6 @@ export default class OpenShiftItem {
test('returns validation message if provided value is not in lower case alphanumeric characters or "-"',()=>{
36
-
constmessage='Not a valid Application name. Please use lower case alphanumeric characters or "-", start with an alphabetic character, and end with an alphanumeric character';
test('returns validation message if provided value is not in lower case alphanumeric characters or "-"',function(){
34
+
constmessage=
35
+
'Not a valid Application name. Please use lower case alphanumeric characters or "-", start with an alphabetic character, and end with an alphanumeric character';
0 commit comments