|
|
@@ -58,7 +58,7 @@ class Zend_Reflection_Docblock_Tag implements Reflector
|
|
|
{
|
|
|
$matches = array();
|
|
|
|
|
|
- if (!preg_match('#^@(\w+)\s#', $tagDocblockLine, $matches)) {
|
|
|
+ if (!preg_match('#^@(\w+)(\s|$)#', $tagDocblockLine, $matches)) {
|
|
|
require_once 'Zend/Reflection/Exception.php';
|
|
|
throw new Zend_Reflection_Exception('No valid tag name found within provided docblock line.');
|
|
|
}
|
|
|
@@ -109,13 +109,13 @@ class Zend_Reflection_Docblock_Tag implements Reflector
|
|
|
$matches = array();
|
|
|
|
|
|
// find the line
|
|
|
- if (!preg_match('#^@(\w+)\s(.*)?#', $tagDocblockLine, $matches)) {
|
|
|
+ if (!preg_match('#^@(\w+)(?:\s+([^\s].*)|$)?#', $tagDocblockLine, $matches)) {
|
|
|
require_once 'Zend/Reflection/Exception.php';
|
|
|
throw new Zend_Reflection_Exception('Provided docblock line does not contain a valid tag');
|
|
|
}
|
|
|
|
|
|
$this->_name = $matches[1];
|
|
|
- if ($matches[2]) {
|
|
|
+ if (isset($matches[2]) && $matches[2]) {
|
|
|
$this->_description = $matches[2];
|
|
|
}
|
|
|
}
|