patch for Text/Wiki/rules/list.php

From: Date: Tue, 06 Jan 2004 21:59:43 +0000
Subject: patch for Text/Wiki/rules/list.php
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-24826@lists.php.net to get a copy of this message
this handles a list being at the end of a document that has no newline at the very end. jim

===== list.php 1.1 vs edited ===== --- 1.1/lib/Text/Wiki/rules/list.php Tue Jan 6 11:29:33 2004 +++ edited/list.php Tue Jan 6 13:53:49 2004 @@ -50,7 +50,7 @@ * */ - var $regex = '/\n((\*|#) .*\n)(?! {0,}(\*|#))/Us'; + var $regex = '/\n((\*|#) .*(\n|$))(?! {0,}(\*|#))/Us'; /** @@ -282,4 +282,4 @@ } } } -?> \ No newline at end of file +?>
« previous php.pear.dev (#24826) next »