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