Skip to content

Commit

Permalink
Remove year from series slug generation
Browse files Browse the repository at this point in the history
  • Loading branch information
ewilan-riviere committed Jan 28, 2024
1 parent 3f156bd commit dbcef6f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/Models/MetaTitle.php
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,6 @@ private function parse(Ebook $ebook): static
$this->seriesSlug = $this->generateSlug([
$seriesDeterminer,
$author,
$year,
$extension,
$language,
]);
Expand Down
2 changes: 1 addition & 1 deletion tests/MetaTitleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

expect($meta->getSlug())->toBe('a-comme-association-01-pale-lumiere-des-tenebres-pierre-bottero-1980-epub-fr');
expect($meta->getSlugSimple())->toBe('la-pale-lumiere-des-tenebres');
expect($meta->getSeriesSlug())->toBe('a-comme-association-pierre-bottero-1980-epub-fr');
expect($meta->getSeriesSlug())->toBe('a-comme-association-pierre-bottero-epub-fr');
expect($meta->getSeriesSlugSimple())->toBe('a-comme-association');

$ebook->setTitle('The Fellowship of the Ring');
Expand Down

0 comments on commit dbcef6f

Please sign in to comment.