Author: ts
Date: Fri Jan 4 14:13:34 2008
New Revision: 7071
Log:
- Adjusted @apichange tag.
- Fixed issue #10928: Add support for more tags like @apichange.
Modified:
scripts/docanalysis/src/parser/tags/apichange.php
Modified: scripts/docanalysis/src/parser/tags/apichange.php
==============================================================================
--- scripts/docanalysis/src/parser/tags/apichange.php [iso-8859-1] (original)
+++ scripts/docanalysis/src/parser/tags/apichange.php [iso-8859-1] Fri Jan 4
14:13:34 2008
@@ -4,18 +4,18 @@
{
public static function getPattern()
{
- return '/[EMAIL PROTECTED](\s|$)/';
+ return '/[EMAIL PROTECTED](\s*|$)/';
}
public function __construct( $docLine )
{
- if ( preg_match( '/[EMAIL PROTECTED](\S+\s*)*$/', $docLine, $matches )
!== 1 )
+ if ( preg_match( '/[EMAIL PROTECTED](\S.*)$/', $docLine, $matches )
!== 1 )
{
throw new ezcDocInvalidDocTagException( "apichange", $docLine );
}
parent::__construct(
array(
- "ref" => ( isset( $matches[1] ) ? $matches[1] : 'none' ),
+ 'desc' => ( isset( $matches[1] ) ? $matches[1] : "" )
)
);
}
--
svn-components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-components