CreateImageWizard: validate the subscription GUID is a valid GUID
This commit is contained in:
parent
3e38a71c4a
commit
24a0f39857
2 changed files with 8 additions and 3 deletions
|
|
@ -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',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue