Skip to content

Commit

Permalink
Merge pull request #78 from kiwilan/develop
Browse files Browse the repository at this point in the history
v2.5.11
  • Loading branch information
ewilan-riviere authored May 26, 2024
2 parents f3bcb13 + 59839e3 commit 904529e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "kiwilan/php-ebook",
"description": "PHP package to read metadata and extract covers from eBooks, comics and audiobooks.",
"version": "2.5.10",
"version": "2.5.11",
"keywords": [
"php",
"ebook",
Expand Down
6 changes: 3 additions & 3 deletions src/Utils/EbookUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ public static function parseStringWithSeperator(mixed $content): mixed
return $content;
}

if (str_contains($content, ',')) {
if (str_contains($content, ', ')) {
$content = explode(',', $content);
} elseif (str_contains($content, ';')) {
$content = explode(';', $content);
} elseif (str_contains($content, '&')) {
} elseif (str_contains($content, ' & ')) {
$content = explode('&', $content);
} elseif (str_contains($content, 'and')) {
} elseif (str_contains($content, ' and ')) {
$content = explode('and', $content);
} elseif (str_contains($content, '/')) {
$content = explode('/', $content);
Expand Down

0 comments on commit 904529e

Please sign in to comment.