From 1575c08d61ff2aa5f29f7477a82893d109222fa3 Mon Sep 17 00:00:00 2001 From: binoyPeries Date: Thu, 12 Sep 2024 14:06:39 +0530 Subject: [PATCH] Allows capitals for connection configs --- dist/index.js | 4 ++-- schemas.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index 4b27eec..ff2df4d 100644 --- a/dist/index.js +++ b/dist/index.js @@ -36183,14 +36183,14 @@ yup.addMethod(yup.string, "validateServiceName", function () { return this.test({ name: "validate-service-name", test: (value, testCtx) => { - const alphanumericRegex = "[a-z0-9_-]+"; + const alphanumericRegex = "[a-zA-Z0-9_-]+"; const choreoSvcRefNameRegex = new RegExp( `^choreo:\/\/\/${alphanumericRegex}\/${alphanumericRegex}\/${alphanumericRegex}\/${alphanumericRegex}\/v\\d+(\\.\\d+)?\/(PUBLIC|PROJECT|ORGANIZATION)$` ); const thirdPartySvcRefNameRegex = new RegExp( "^thirdparty:[a-zA-Z0-9._/-]+$" ); - const dbSvcRefNameRegex = new RegExp("^database:[a-z0-9_/-]+$"); + const dbSvcRefNameRegex = new RegExp("^database:[a-zA-Z0-9_/-]+$"); if (value.startsWith("choreo:///")) { return ( diff --git a/schemas.js b/schemas.js index e9b92cd..dcb402c 100644 --- a/schemas.js +++ b/schemas.js @@ -101,14 +101,14 @@ yup.addMethod(yup.string, "validateServiceName", function () { return this.test({ name: "validate-service-name", test: (value, testCtx) => { - const alphanumericRegex = "[a-z0-9_-]+"; + const alphanumericRegex = "[a-zA-Z0-9_-]+"; const choreoSvcRefNameRegex = new RegExp( `^choreo:\/\/\/${alphanumericRegex}\/${alphanumericRegex}\/${alphanumericRegex}\/${alphanumericRegex}\/v\\d+(\\.\\d+)?\/(PUBLIC|PROJECT|ORGANIZATION)$` ); const thirdPartySvcRefNameRegex = new RegExp( "^thirdparty:[a-zA-Z0-9._/-]+$" ); - const dbSvcRefNameRegex = new RegExp("^database:[a-z0-9_/-]+$"); + const dbSvcRefNameRegex = new RegExp("^database:[a-zA-Z0-9_/-]+$"); if (value.startsWith("choreo:///")) { return (