Wizard: Improve validation of GCP targets

Fixes #879. This adds anchor at the beginning of the regular expression for validation of GCP targets.
This commit is contained in:
regexowl 2022-12-02 14:53:54 +01:00 committed by Sanne Raymaekers
parent ab1a7f4aab
commit dd08069e48

View file

@ -151,7 +151,7 @@ export default {
},
{
type: validatorTypes.PATTERN,
pattern: '[a-z0-9._%+-]+@[a-z0-9.-]+.[a-z]{2,}$',
pattern: '^[a-z0-9._%+-]+@[a-z0-9.-]+.[a-z]{2,}$',
message: 'Please enter a valid email address',
},
],