From fdc8e3bc51d021bf8694d3cfed986b662706ba39 Mon Sep 17 00:00:00 2001 From: irfan-dahir Date: Mon, 13 Aug 2018 23:14:34 +0500 Subject: [PATCH] fix #180 --- src/Lib/Parser/AnimeCharacterStaffParse.php | 2 +- src/Lib/Parser/PersonParse.php | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Lib/Parser/AnimeCharacterStaffParse.php b/src/Lib/Parser/AnimeCharacterStaffParse.php index 9a1d14fd..346f058d 100755 --- a/src/Lib/Parser/AnimeCharacterStaffParse.php +++ b/src/Lib/Parser/AnimeCharacterStaffParse.php @@ -31,7 +31,7 @@ public function parse(): Array $this->addRule( 'character', - '~

Characters & Voice Actors

~', + '~Characters & Voice Actors~', function () { $running = true; $i = 0; diff --git a/src/Lib/Parser/PersonParse.php b/src/Lib/Parser/PersonParse.php index 4dd53d0d..db39217f 100755 --- a/src/Lib/Parser/PersonParse.php +++ b/src/Lib/Parser/PersonParse.php @@ -142,14 +142,14 @@ function () { $this->addRule( 'voice_acting_role', - '~
Voice Acting Roles
~', + '~Voice Acting Roles~', function () { $running = true; $i = 1; $voiceActingRoles = []; while ($running) { $line = $this->file[$this->lineNo + $i]; - if (preg_match('~
Anime Staff Positions
~', $line)) { + if (preg_match('~Anime Staff Positions~', $line)) { $running = false; } @@ -209,14 +209,14 @@ function () { $this->addRule( 'anime_staff_position', - '~
Anime Staff Positions
~', + '~Anime Staff Positions~', function () { $running = true; $i = 1; $animeStaffPositions = []; while ($running) { $line = $this->file[$this->lineNo + $i]; - if (preg_match('~
Published Manga
~', $line)) { + if (preg_match('~Published Manga~', $line)) { $running = false; } @@ -261,7 +261,7 @@ function () { $this->addRule( 'published_manga', - '~
Published Manga
~', + '~Published Manga~', function () { $running = true; $i = 1;