Commit 87a06531ce10ba30df2fe4b1a9b7c6a131c189f7

Authored by alex
1 parent f65f3b41

add PCRE rule to phone filter

Showing 1 changed file with 5 additions and 5 deletions   Show diff stats
common/models/Feedback.php
... ... @@ -52,11 +52,11 @@ class Feedback extends CoreFeedback
52 52 ['email'],
53 53 'email',
54 54 ],
55   - // [
56   - // [ 'phone' ],
57   - // 'match',
58   - // 'pattern' => '/^\+38\(\d{3}\)\d{3}-\d{2}-\d{2}$/',
59   - // ],
  55 + [
  56 + ['phone'],
  57 + 'match',
  58 + 'pattern' => '/^\+38\(\d{3}\)\d{3}-\d{2}-\d{2}$/',
  59 + ],
60 60 [
61 61 [
62 62 'name',
... ...