Skip to content

Commit

Permalink
Fix #205, add '-' character to an allowed character in anime type reg…
Browse files Browse the repository at this point in the history
…ex matching

Signed-off-by: Miraris <[email protected]>
  • Loading branch information
miraris committed Oct 12, 2018
1 parent 09bbb65 commit 6871834
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Parser/Common/AnimeCardParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down

0 comments on commit 6871834

Please sign in to comment.