CreateImageWizard: validate the subscription GUID is a valid GUID

This commit is contained in:
Jacob Kozol 2021-11-20 21:52:57 +01:00 committed by Sanne Raymaekers
parent 3e38a71c4a
commit 24a0f39857
2 changed files with 8 additions and 3 deletions

View file

@ -80,6 +80,11 @@ export default {
{
type: validatorTypes.REQUIRED,
},
{
type: validatorTypes.PATTERN,
pattern: /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,
message: 'Please enter a valid subscription GUID',
},
],
},
{