mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Code formatting in EmailField
This commit is contained in:
parent
1e61b76ca8
commit
8369cded32
@ -24,7 +24,6 @@ class EmailField extends TextField {
|
||||
|
||||
$pcrePattern = '^[a-z0-9!#$%&\'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&\'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$';
|
||||
|
||||
|
||||
// PHP uses forward slash (/) to delimit start/end of pattern, so it must be escaped
|
||||
$pregSafePattern = str_replace('/', '\\/', $pcrePattern);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user