trim potential spaces

This commit is contained in:
spencerrlongg 2024-02-14 11:59:14 -06:00
parent d9c61fdb02
commit fb28882f65

View file

@ -309,7 +309,7 @@ class ValidationServiceProvider extends ServiceProvider
}
// for legacy, allows users to submit a comma separated string of options
elseif(!is_array($value)) {
$exploded = explode(',', $value);
$exploded = array_map('trim', explode(',', $value));
$invalid = array_diff($exploded, $options);
if(count($invalid) > 0) {
return false;