From 7b2c1423448af2885972bce06d697630a7cf5b8b Mon Sep 17 00:00:00 2001 From: Gianni Carafa Date: Thu, 28 Sep 2023 22:04:36 +0200 Subject: [PATCH] Fix domain regex --- README.md | 6 +++--- client/src/components/pipelines/new.vue | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b4eda621..3f67f494 100644 --- a/README.md +++ b/README.md @@ -98,14 +98,14 @@ Kubero is Kubernetes native and runs with two containers on any Kubernetes insta ## Quickstart -1) Download and unpack the Kubero CLI

+**1) Download and unpack the Kubero CLI** (MacOS, Linux, Windows)

-### Binaries (MacOS, Linux) +Binaries (MacOS, Linux) ``` curl -fsSL get.kubero.dev | bash ``` -### Brew (MacOS, Linux) + Brew (MacOS, Linux) ``` brew tap kubero-dev/kubero brew install kubero-cli diff --git a/client/src/components/pipelines/new.vue b/client/src/components/pipelines/new.vue index 692b5857..a7065183 100644 --- a/client/src/components/pipelines/new.vue +++ b/client/src/components/pipelines/new.vue @@ -297,7 +297,7 @@ export default { ], domainRules: [ v => v.length <= 90 || 'Name must be less than 90 characters', - v => /^([a-z0-9|-]+[a-z0-9]{1,}\.)*[a-z0-9|-]+[a-z0-9]{1,}\.[a-z]{2,}$/.test(v) || 'Not a domain', + v => /^([a-z0-9|-]*[a-z0-9]{1,}\.)*[a-z0-9|-]+[a-z0-9]{1,}\.[a-z]{2,}$/.test(v) || 'Not a domain', ], repositoryRules: [ v => !!v || 'Repository is required',