Archived
1
0
Fork 0

trim quotes

This commit is contained in:
Alexander Yakovlev 2020-04-10 11:01:09 +07:00
parent 027ab478ec
commit d26cef210e
Signed by: oreolek
GPG key ID: 1CDC4B7820C93BD3

View file

@ -25,6 +25,9 @@ class Game extends Model
// Replace non-breaking space with regular one
$game->title = str_replace(' ', ' ', $game->title);
$game->title = trim($game->title);
// strip quotes
$game->title = trim($game->title,'"');
$game->title = trim($game->title,"'");
$game->description = str_replace(' ', ' ', $game->description);
$game->description = trim($game->description);
});