Skip to content

Commit

Permalink
validators: Remove kernel name validator
Browse files Browse the repository at this point in the history
We currently don't use this validator.
  • Loading branch information
regexowl committed Jan 17, 2025
1 parent 6adda63 commit 0ce54ce
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/Components/CreateImageWizard/validators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,17 +104,6 @@ export const isHostnameValid = (hostname: string) => {
);
};

export const isKernelNameValid = (kernelName: string) => {
if (!kernelName) {
return true;
}

return (
kernelName.length < 65 &&
/^[a-z0-9]|[a-z0-9][a-z0-9-]*[a-z0-9]$/.test(kernelName)
);
};

export const isPortValid = (port: string) => {
return /^(\d{1,5}|[a-z]{1,6})(-\d{1,5})?:[a-z]{1,6}$/.test(port);
};

0 comments on commit 0ce54ce

Please sign in to comment.