Skip to content

Commit

Permalink
trim potential spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
spencerrlongg committed Feb 14, 2024
1 parent d9c61fd commit fb28882
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Providers/ValidationServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ public function boot()
}
// 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;
Expand Down

0 comments on commit fb28882

Please sign in to comment.