Skip to content

Commit

Permalink
Merge pull request #14 from binoyPeries/main
Browse files Browse the repository at this point in the history
Allows capitals for connection configs
  • Loading branch information
binoyPeries committed Sep 12, 2024
2 parents ad2537c + 1575c08 commit f78ac2c
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 f78ac2c

Please sign in to comment.