Added:
- Refactor MangaScraperService (not used everywhere now) - Added JavascriptScraper.php - Added alternatives slugs in Manga.php - Improvement in manga edit form
This commit is contained in:
@@ -26,7 +26,7 @@ class ChapterUrlGenerator
|
||||
|
||||
private function validateUrlFormat(string $format): void
|
||||
{
|
||||
if (!str_contains($format, '{slug}') || !str_contains($format, '{chapterNumber}')) {
|
||||
if (!str_contains($format, '{slug}')) {
|
||||
throw new InvalidArgumentException("The URL format must contain both {slug} and {chapterNumber} placeholders.");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user