Update packages/catalog-model/src/validation/CommonValidatorFunctions.ts
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com> Signed-off-by: pitwegner <pit.wegner@gmail.com>
This commit is contained in:
@@ -91,7 +91,7 @@ export class CommonValidatorFunctions {
|
||||
typeof value === 'string' &&
|
||||
value.length >= 1 &&
|
||||
value.length <= 63 &&
|
||||
/^(?!\-)[a-z0-9\-]*[a-z0-9]$/.test(value)
|
||||
/^[a-z0-9]+(?:\-+[a-z0-9]+)*$/.test(value)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user