Author: kn
Date: Mon Nov 26 12:17:01 2007
New Revision: 6797

Log:
- Made description in @apichange tag optional

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] Mon Nov 26 
12:17:01 2007
@@ -9,13 +9,13 @@
 
     public function __construct( $docLine )
     {
-        if ( preg_match( '/[EMAIL PROTECTED](\S+\s*)+$/', $docLine, $matches ) 
!== 1 )
+        if ( preg_match( '/[EMAIL PROTECTED](\S+\s*)*$/', $docLine, $matches ) 
!== 1 )
         {
             throw new ezcDocInvalidDocTagException( "apichange", $docLine );
         }
         parent::__construct(
             array(
-                "ref"  => $matches[1],
+                "ref"  => ( isset( $matches[1] ) ? $matches[1] : 'none' ),
             )
         );
     }


-- 
svn-components mailing list
svn-components@lists.ez.no
http://lists.ez.no/mailman/listinfo/svn-components

Reply via email to