From 832312ed1faca5c7a6cb96bfbf9f25f9f851fcb2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Wed, 4 May 2005 01:53:04 +0000 Subject: [PATCH] * Changed [0-9] to \d in the ndash converter. --- includes/Parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.20.1