Remove invalid dot from email and URL validation strings

This commit is contained in:
Jason Elkin
2023-03-16 11:20:45 +00:00
committed by Jacob Overgaard
parent c57c630edb
commit f6970b5b6c

View File

@@ -127,7 +127,7 @@ export class UmbPropertySettingsModalElement extends UmbModalBaseElement<object,
{
name: 'Validate as an email address',
value: 'email',
validation: '[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+.[a-zA-Z0-9-.]+',
validation: '[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+',
},
{
name: 'Validate as a number',
@@ -137,7 +137,7 @@ export class UmbPropertySettingsModalElement extends UmbModalBaseElement<object,
{
name: 'Validate as an URL',
value: 'url',
validation: 'https?://[a-zA-Z0-9-.]+.[a-zA-Z]{2,}',
validation: 'https?://[a-zA-Z0-9-.]+\\.[a-zA-Z]{2,}',
},
{
name: '...or enter a custom validation',