1 | <?php |
||
18 | class EmailLocalPartValidator extends RegularExpressionValidator |
||
19 | { |
||
20 | /** |
||
21 | * @var string default validation pattern for the local part |
||
22 | */ |
||
23 | public $defaultPattern = '/^[0-9a-z_+-]([0-9a-z\._+-]+)?$/i'; |
||
24 | |||
25 | /** |
||
26 | * @var string the same as [[defaultPattern]], but allows `*` character. |
||
27 | * Used when [[allowWildCard]] is true. |
||
28 | */ |
||
29 | public $defaultWildPattern = '/^(\*|([0-9a-z_+-]([0-9a-z\._+-]+)?))$/i'; |
||
30 | |||
31 | /** |
||
32 | * @var bool Whether to allow `*` char instead of local part. Defaults to false. |
||
33 | */ |
||
34 | public $allowWildCard = false; |
||
35 | |||
36 | /** |
||
37 | * {@inheritdoc} |
||
38 | */ |
||
39 | public function init() |
||
47 | } |
||
48 |