Bug #128 fixed: Dashes and spaces are correctly sanitized
Bug #129 fixed: When an exact match is found, the exact match will be at index 0 in the array. Partial matches can be found in the next indices.
This PR includes fixes for both issues, tests to ensure these issues won't occur again, and general improvements to readability and remove code duplication by moving 2 complex if-statements to their own function.
Bug #128 fixed: Dashes and spaces are correctly sanitized Bug #129 fixed: When an exact match is found, the exact match will be at index 0 in the array. Partial matches can be found in the next indices.
This PR includes fixes for both issues, tests to ensure these issues won't occur again, and general improvements to readability and remove code duplication by moving 2 complex if-statements to their own function.
PHPUnit might fail on a broken dependency for PHP 7.2: https://github.com/lanthaler/JsonLD/issues/88 https://github.com/lanthaler/JsonLD/pull/92