Skip to content

Commit

Permalink
Allows capitals for connection configs
Browse files Browse the repository at this point in the history
  • Loading branch information
binoyPeries committed Sep 12, 2024
1 parent ad2537c commit 1575c08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
4 changes: 2 additions & 2 deletions schemas.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 1575c08

Please sign in to comment.