|
|
@@ -23,7 +23,7 @@ class CategoryDeleteController
|
|
|
|
|
|
try {
|
|
|
v::key('company_id', v::intType()->positive())
|
|
|
- ->key('category_name', v::stringType()->notEmpty()->alnum(' '))
|
|
|
+ ->key('category_name', v::stringType()->notEmpty()->regex('/^[\p{L}\p{N}\s\-\'\"]+$/u'))
|
|
|
->assert($body);
|
|
|
} catch (ValidationException $e) {
|
|
|
return ResponseLib::sendFail("Validation failed: " . $e->getFullMessage(), [], "E_VALIDATE")->withStatus(401);
|