From: Greg Burri Date: Tue, 2 Sep 2008 19:33:24 +0000 (+0000) Subject: FIX Le formatage wiki était appliqué à l'intérieur des url : http://blabl.org?sad_asd... X-Git-Tag: 1.1.2~2 X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=commitdiff_plain;h=4eed832e336e6056464ebda246c5318e1c9d3a69;hp=6220ddb7fe01c6bff10ffe99d1edc6f908118f93 FIX Le formatage wiki était appliqué à l'intérieur des url : blabl.org?sad_asd_das, les underscores étaient pris en compte. VERSION 1.1.2 --- diff --git a/VERSION b/VERSION index 8cfbc90..8428158 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.1.1 \ No newline at end of file +1.1.2 \ No newline at end of file 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 + ''; } diff --git a/pages/about.html b/pages/about.html index 13c9fed..61909bb 100644 --- a/pages/about.html +++ b/pages/about.html @@ -1,7 +1,7 @@

euphorik.ch

-

Version : 1.1.1

+

Version : 1.1.2

Auteur : Pifou

FAQ