From fd5a94affb3716ae06e2089c94a403f5eff5db71 Mon Sep 17 00:00:00 2001 From: Fil <fil@rezo.net> Date: Wed, 3 Aug 2005 13:59:29 +0000 Subject: [PATCH] =?UTF-8?q?le=20d=C3=A9tecteur=20de=20balises=20#COULEUR?= =?UTF-8?q?=20avait=20saut=C3=A9=20(S=C3=A9bastien=20Rufer)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inc-compilo-index.php3 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc-compilo-index.php3 b/inc-compilo-index.php3 index 03b1a0c154..a0c6736baf 100644 --- a/inc-compilo-index.php3 +++ b/inc-compilo-index.php3 @@ -157,10 +157,10 @@ function calculer_balise($nom, $p) { // ET s'il n'y a ni filtre ni etoile // ALORS retourner la couleur. // Ca permet si l'on veut vraiment de recuperer [(#ACCEDE*)] - if (ereg("^[\$]Pile[[]0[]][[]'([A-F]{1,6})'[]]$", $p->code, $match) + if (preg_match("/^[A-F]{1,6}$/i", $nom) AND !$p->etoile AND !$p->fonctions) { - $p->code = "'#". $match[1]."'"; + $p->code = "'#$nom'"; $p->statut = 'php'; } -- GitLab