* Changed [0-9] to \d in the ndash converter.
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Wed, 4 May 2005 01:53:04 +0000 (01:53 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Wed, 4 May 2005 01:53:04 +0000 (01:53 +0000)
includes/Parser.php

index f286cd6..f4a8896 100644 (file)
@@ -208,7 +208,7 @@ class Parser
 
                $dashReplace = array(
                        '/ - /' => "&nbsp;&ndash; ", # N dash
-                       '/(?<=[0-9])-(?=[0-9])/' => "&ndash;", # N dash between numbers
+                       '/(?<=[\d])-(?=[\d])/' => "&ndash;", # N dash between numbers
                        '/ -- /' => "&nbsp;&mdash; " # M dash
                );
                $text = preg_replace( array_keys($dashReplace), array_values($dashReplace), $text );