Author: christian_lefebvre@laposte.net
Date: Wed Aug 9 23:47:22 2006
New Revision: 4463
Log:
pff .. les regex après 23h, c'est dur ...
Modified:
_outils_/docspip/highlight.php
Modified: _outils_/docspip/highlight.php
--- _outils_/docspip/highlight.php (original)
+++ _outils_/docspip/highlight.php Wed Aug 9 23:47:22 2006
@@ -5,7 +5,7 @@
$out= highlight_string ($txt, true);
$out= preg_replace(
- '!(//(\*| | )*)(http://doc.spip.org/@(\S*))!',
- '$1<A name="$3" href="$2">$2</A>$4', $out);
+ '!(//(\*| | )*)(http://doc.spip.org/@(\S*?))((\*| | )*<br)!',
+ '$1<A name="$4" href="$3">$3</A>$5', $out);
echo $out;
?>