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 (