Skip to content

Commit

Permalink
Merge pull request #1265 from shikorism/fix/1264-melonbooks-title-han…
Browse files Browse the repository at this point in the history
…kaku

MelonbooksResolver: ページタイトル内の丸括弧が半角化されたことに伴う抽出正規表現の修正
  • Loading branch information
shibafu528 authored Aug 24, 2024
2 parents cb2a76d + de6a1bd commit 2eabce4
Show file tree
Hide file tree
Showing 3 changed files with 741 additions and 434 deletions.
2 changes: 1 addition & 1 deletion app/MetadataResolver/MelonbooksResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function resolve(string $url): Metadata
}

// 抽出
preg_match('~^(.+)((.+)の通販・購入はメロンブックス~', $metadata->title, $match);
preg_match('~^(.+)\((.+)\)の通販・購入はメロンブックス~', $metadata->title, $match);
$title = $match[1];
$maker = $match[2];

Expand Down
Loading

0 comments on commit 2eabce4

Please sign in to comment.