Index: trunk/phase3/includes/Parser.php |
— | — | @@ -208,7 +208,7 @@ |
209 | 209 | |
210 | 210 | $dashReplace = array( |
211 | 211 | '/ - /' => " – ", # N dash |
212 | | - '/(?<=[0-9])-(?=[0-9])/' => "–", # N dash between numbers |
| 212 | + '/(?<=[\d])-(?=[\d])/' => "–", # N dash between numbers |
213 | 213 | '/ -- /' => " — " # M dash |
214 | 214 | ); |
215 | 215 | $text = preg_replace( array_keys($dashReplace), array_values($dashReplace), $text ); |