add . too app/Rules/DowranAgaAllowed.php

This commit is contained in:
2024-03-31 05:21:01 +05:00
parent cf7811eb52
commit 09e2f1d5ce

View File

@@ -14,7 +14,7 @@ class DowranAgaAllowed implements ValidationRule
*/
public function validate(string $attribute, mixed $value, Closure $fail): void
{
$pattern = "/^[a-zA-Z0-9\s\(\)\"\'\-\žŽäÄňŇöÖşŞüÜçÇýÝ\/,]+$/u";
$pattern = "/^[a-zA-Z0-9\s\(\)\"\'\-\žŽäÄňŇöÖşŞüÜçÇýÝ\/,.]+$/u";
if (! preg_match($pattern, $value)) {
$fail(__('Write a correct data please'));