From: Ævar Arnfjörð Bjarmason Date: Wed, 4 May 2005 01:53:04 +0000 (+0000) Subject: * Changed [0-9] to \d in the ndash converter. X-Git-Tag: 1.5.0alpha2~324 X-Git-Url: http://git.cyclocoop.org/%22%2C%20generer_url_ecrire%28?a=commitdiff_plain;h=832312ed1faca5c7a6cb96bfbf9f25f9f851fcb2;p=lhc%2Fweb%2Fwiklou.git * Changed [0-9] to \d in the ndash converter. --- diff --git a/includes/Parser.php b/includes/Parser.php index f286cd65f2..f4a8896b6f 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -208,7 +208,7 @@ class Parser $dashReplace = array( '/ - /' => " – ", # N dash - '/(?<=[0-9])-(?=[0-9])/' => "–", # N dash between numbers + '/(?<=[\d])-(?=[\d])/' => "–", # N dash between numbers '/ -- /' => " — " # M dash ); $text = preg_replace( array_keys($dashReplace), array_values($dashReplace), $text );