Skip to content

Commit

Permalink
Fix domain regex
Browse files Browse the repository at this point in the history
  • Loading branch information
mms-gianni committed Sep 28, 2023
1 parent dc192da commit 7b2c142
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,14 @@ Kubero is Kubernetes native and runs with two containers on any Kubernetes insta
<img src="docs/img/highlevel.png">

## Quickstart
1) Download and unpack the <a href="https://github.com/kubero-dev/kubero-cli/releases/latest">Kubero CLI</a><p>
**1) Download and unpack the <a href="https://github.com/kubero-dev/kubero-cli/releases/latest">Kubero CLI</a>** (MacOS, Linux, Windows)<p>

### 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
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/pipelines/new.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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',

Check failure

Code scanning / CodeQL

Inefficient regular expression High

This part of the regular expression may cause exponential backtracking on strings containing many repetitions of '00.'.
],
repositoryRules: [
v => !!v || 'Repository is required',
Expand Down

0 comments on commit 7b2c142

Please sign in to comment.