From 390e5c820be2f2e8fcf60f46eee20f612fa4dd78 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Tue, 8 Jan 2019 10:07:30 +0100 Subject: [PATCH] Update xref matching regex --- Blacklight/Binaries.php | 5 ++--- Changelog | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Blacklight/Binaries.php b/Blacklight/Binaries.php index 6e423d79a..4b34d1b0d 100755 --- a/Blacklight/Binaries.php +++ b/Blacklight/Binaries.php @@ -791,10 +791,9 @@ class Binaries $xrefsData = Collection::whereCollectionhash(sha1($this->header['CollectionKey']))->value('xref'); $tempHeaderXrefs = []; - //dump($this->header['Xref']); $headerXrefs = explode(' ', $this->header['Xref']); foreach ($headerXrefs as $headerXref) { - if (preg_match('/(^[a-zA-Z]{2,3}\.(bin(aries|arios|aer))\.\w+)/', $headerXref, $match)) { + if (preg_match('/(^[a-zA-Z]{2,3}\.(bin(aries|arios|aer))\.[a-zA-Z0-9]?.+)/', $headerXref, $match)) { $tempHeaderXrefs[] = $match[0]; } } @@ -804,7 +803,7 @@ class Binaries if ($xrefsData !== null) { $xrefsDataArray = explode(' ', $xrefsData); foreach ($xrefsDataArray as $xrefData) { - if (preg_match('/(^[a-zA-Z]{2,3}\.(bin(aries|arios|aer))\.\w+)/', $xrefData, $match1)) { + if (preg_match('/(^[a-zA-Z]{2,3}\.(bin(aries|arios|aer))\.[a-zA-Z0-9]?.+)/', $xrefData, $match1)) { $tempXrefsData[] = $match1[0]; } } diff --git a/Changelog b/Changelog index 5039da369..7ea61130b 100755 --- a/Changelog +++ b/Changelog @@ -1,4 +1,5 @@ 2019-01-08 DariusIII + * Chg: Update xref matching regex * Chg: Alter Binaries class xref updates and adjust nzb creation accordingly 2019-01-07 DariusIII * Chg: Revert Binaries to original behaviour