From 6871834f987b28563e1b026d83bf15b6f9710b59 Mon Sep 17 00:00:00 2001 From: Miraris Date: Fri, 12 Oct 2018 13:09:31 +0200 Subject: [PATCH] Fix #205, add '-' character to an allowed character in anime type regex matching Signed-off-by: Miraris --- src/Parser/Common/AnimeCardParser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Parser/Common/AnimeCardParser.php b/src/Parser/Common/AnimeCardParser.php index f6c2e39c..0084aaec 100644 --- a/src/Parser/Common/AnimeCardParser.php +++ b/src/Parser/Common/AnimeCardParser.php @@ -148,7 +148,7 @@ public function getType(): ?string } $text = JString::cleanse($text->text()); - preg_match('/^([\w\.]+)/', $text, $matches); + preg_match('/^([a-zA-Z-\.]+)/', $text, $matches); return $matches[1]; }