Skip to content

Commit

Permalink
Merge pull request #55
Browse files Browse the repository at this point in the history
* pr-55:
  fix: classifications mapping fails with trailing spaces
  • Loading branch information
TiSiE committed Jul 1, 2020
2 parents 12f60f7 + 8a9aac3 commit df537a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Filter/MapClassificationsFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ private function filterClassification(array $values, array $map): array
{
$mappedValues = [];
foreach ($values as $item) {
$mapped = $map[strtolower($item)] ?? false;
$mapped = $map[strtolower(trim($item))] ?? false;
if ($mapped === false) {
$mappedValues[] = $item;
continue;
Expand Down

0 comments on commit df537a4

Please sign in to comment.