Skip to content

Commit

Permalink
fix #180
Browse files Browse the repository at this point in the history
  • Loading branch information
irfan-dahir committed Aug 13, 2018
1 parent 0c9a90b commit fdc8e3b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Lib/Parser/AnimeCharacterStaffParse.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function parse(): Array

$this->addRule(
'character',
'~<h2>Characters & Voice Actors</h2>~',
'~</div>Characters & Voice Actors</h2>~',
function () {
$running = true;
$i = 0;
Expand Down
10 changes: 5 additions & 5 deletions src/Lib/Parser/PersonParse.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,14 +142,14 @@ function () {

$this->addRule(
'voice_acting_role',
'~<div class="normal_header">Voice Acting Roles</div>~',
'~</div>Voice Acting Roles</div>~',
function () {
$running = true;
$i = 1;
$voiceActingRoles = [];
while ($running) {
$line = $this->file[$this->lineNo + $i];
if (preg_match('~<div class="normal_header">Anime Staff Positions</div>~', $line)) {
if (preg_match('~</span>Anime Staff Positions</div>~', $line)) {
$running = false;
}

Expand Down Expand Up @@ -209,14 +209,14 @@ function () {

$this->addRule(
'anime_staff_position',
'~<div class="normal_header">Anime Staff Positions</div>~',
'~</span>Anime Staff Positions</div>~',
function () {
$running = true;
$i = 1;
$animeStaffPositions = [];
while ($running) {
$line = $this->file[$this->lineNo + $i];
if (preg_match('~<div class="normal_header">Published Manga</div>~', $line)) {
if (preg_match('~</span>Published Manga</div>~', $line)) {
$running = false;
}

Expand Down Expand Up @@ -261,7 +261,7 @@ function () {

$this->addRule(
'published_manga',
'~<div class="normal_header">Published Manga</div>~',
'~</span>Published Manga</div>~',
function () {
$running = true;
$i = 1;
Expand Down

0 comments on commit fdc8e3b

Please sign in to comment.