Update xref matching regex

This commit is contained in:
DariusIII
2019-01-08 10:07:30 +01:00
parent e0812c7448
commit 390e5c820b
2 changed files with 3 additions and 3 deletions
+2 -3
View File
@@ -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];
}
}
+1
View File
@@ -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