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