|
|
|
@ -20,11 +20,11 @@ class Body
@@ -20,11 +20,11 @@ class Body
|
|
|
|
|
{ |
|
|
|
|
$matches = []; |
|
|
|
|
|
|
|
|
|
foreach ($this->_lines as $line) |
|
|
|
|
foreach ($this->_lines as $index => $line) |
|
|
|
|
{ |
|
|
|
|
if (preg_match('/^#([^#]+)/', trim($line), $match)) |
|
|
|
|
{ |
|
|
|
|
$matches[] = trim( |
|
|
|
|
$matches[$index] = trim( |
|
|
|
|
$match[1] |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
@ -37,11 +37,11 @@ class Body
@@ -37,11 +37,11 @@ class Body
|
|
|
|
|
{ |
|
|
|
|
$matches = []; |
|
|
|
|
|
|
|
|
|
foreach ($this->_lines as $line) |
|
|
|
|
foreach ($this->_lines as $index => $line) |
|
|
|
|
{ |
|
|
|
|
if (preg_match('/^##([^#]+)/', trim($line), $match)) |
|
|
|
|
{ |
|
|
|
|
$matches[] = trim( |
|
|
|
|
$matches[$index] = trim( |
|
|
|
|
$match[1] |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
@ -54,11 +54,11 @@ class Body
@@ -54,11 +54,11 @@ class Body
|
|
|
|
|
{ |
|
|
|
|
$matches = []; |
|
|
|
|
|
|
|
|
|
foreach ($this->_lines as $line) |
|
|
|
|
foreach ($this->_lines as $index => $line) |
|
|
|
|
{ |
|
|
|
|
if (preg_match('/^###([^#]+)/', trim($line), $match)) |
|
|
|
|
{ |
|
|
|
|
$matches[] = trim( |
|
|
|
|
$matches[$index] = trim( |
|
|
|
|
$match[1] |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
@ -71,11 +71,11 @@ class Body
@@ -71,11 +71,11 @@ class Body
|
|
|
|
|
{ |
|
|
|
|
$matches = []; |
|
|
|
|
|
|
|
|
|
foreach ($this->_lines as $line) |
|
|
|
|
foreach ($this->_lines as $index => $line) |
|
|
|
|
{ |
|
|
|
|
if (preg_match('/^=>(.*)/', trim($line), $match)) |
|
|
|
|
{ |
|
|
|
|
$matches[] = trim( |
|
|
|
|
$matches[$index] = trim( |
|
|
|
|
$match[1] |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
@ -88,11 +88,11 @@ class Body
@@ -88,11 +88,11 @@ class Body
|
|
|
|
|
{ |
|
|
|
|
$matches = []; |
|
|
|
|
|
|
|
|
|
foreach ($this->_lines as $line) |
|
|
|
|
foreach ($this->_lines as $index => $line) |
|
|
|
|
{ |
|
|
|
|
if (preg_match('/' . $protocol . ':\/\/(.*)[\s\S\'"]*/', trim($line), $match)) |
|
|
|
|
{ |
|
|
|
|
$matches[] = |
|
|
|
|
$matches[$index] = |
|
|
|
|
sprintf( |
|
|
|
|
'%s://%s', |
|
|
|
|
$protocol, |
|
|
|
|