Wizard: Add kernel append input
This adds the kernel append input. New arguments can be added by pressing the "Add" button or hitting Enter after the argument. The kernel arguments linked to a selected OpenSCAP profile are rendered in a category marked as "Required by OpenSCAP" and are read only.
This commit is contained in:
parent
199dd3d5d7
commit
1b21852518
13 changed files with 305 additions and 40 deletions
|
|
@ -124,6 +124,14 @@ export const isKernelNameValid = (kernelName: string) => {
|
|||
);
|
||||
};
|
||||
|
||||
export const isKernelArgumentValid = (arg: string) => {
|
||||
if (!arg) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return /^[a-zA-Z0-9=-_,"']*$/.test(arg);
|
||||
};
|
||||
|
||||
export const isPortValid = (port: string) => {
|
||||
return /^(\d{1,5}|[a-z]{1,6})(-\d{1,5})?:[a-z]{1,6}$/.test(port);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue