From 7ed94c7b79840eadedb78860ff12ea08136cd5e8 Mon Sep 17 00:00:00 2001 From: Greg Burri Date: Wed, 3 Sep 2008 08:42:41 +0000 Subject: [PATCH] REPORT de la branche 1.1 : 439->439 --- js/formateur.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/formateur.js b/js/formateur.js index b7ec0eb..5e8095a 100644 --- a/js/formateur.js +++ b/js/formateur.js @@ -110,12 +110,12 @@ euphorik.Formateur.prototype.traiterURL = function(m, pseudo) { */ euphorik.Formateur.prototype.traiterWikiSyntaxe = function(m) { return m.replace( - /_(.*?)_/g, + /(?:^| )_(.*?)_(?:$| )/g, function(texte, capture) { return '' + capture + ''; } ).replace( - /\*(.*?)\*/g, + /(?:^| )\*(.*?)\*(?:$| )/g, function(texte, capture) { return '' + capture + ''; } -- 2.43.0