X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=js%2Fformateur.js;h=5e8095a202d4f386a381b1b2ac9953ecdd0d5671;hp=b7ec0eb89d7a2b1c6608c8ca53c027a6679edc75;hb=4eed832e336e6056464ebda246c5318e1c9d3a69;hpb=eb8708a7450d6c5147613fab28678b206aeb7c7e 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 + ''; }