|
|
|
|
@ -446,9 +446,9 @@ class StoryApiV1Controller extends Controller
|
|
|
|
|
|
|
|
|
|
switch ($type) {
|
|
|
|
|
case 'text':
|
|
|
|
|
if (! preg_match('/^[a-zA-Z0-9\s,\.]*$/', $content)) {
|
|
|
|
|
if (! preg_match('/^[a-zA-Z0-9\s\p{P}\p{S}]*$/u', $content)) {
|
|
|
|
|
throw ValidationException::withMessages([
|
|
|
|
|
"overlays.{$index}.content" => 'Text overlays can only contain letters, numbers, spaces, commas, and dots.',
|
|
|
|
|
"overlays.{$index}.content" => 'Text overlays contain unsupported characters.',
|
|
|
|
|
]);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|