Make WordPress Core

Changeset 985


Ignore:
Timestamp:
03/22/2004 01:34:32 AM (21 years ago)
Author:
saxmatt
Message:

Texturize kung-foo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions-formatting.php

    r980 r985  
    1919            $curl = str_replace($cockney, $cockneyreplace, $curl);
    2020
    21             $curl = preg_replace("/'s/", "’s", $curl);
     21            $curl = preg_replace("/'s/", '’s', $curl);
    2222            $curl = preg_replace("/'(\d\d(?:’|')?s)/", "’$1", $curl);
    2323            $curl = preg_replace('/(\s|\A|")\'/', '$1‘', $curl);
    24             $curl = preg_replace("/(\d+)\"/", "$1″", $curl);
    25             $curl = preg_replace("/(\d+)'/", "$1′", $curl);
     24            $curl = preg_replace('/(\d+)"/', '$1″', $curl);
     25            $curl = preg_replace("/(\d+)'/", '$1′', $curl);
    2626            $curl = preg_replace("/(\S)'([^'\s])/", "$1’$2", $curl);
    27             $curl = preg_replace('/"([\s.,!?;:&\']|\Z)/', '”$1', $curl);
    28             $curl = preg_replace('/(\s|\A)"/', '$1“', $curl);
     27            $curl = preg_replace('/(\s|\A)"(?!\s)/', '$1“$2', $curl);
     28            $curl = preg_replace('/"(\s|\Z)/', '”$1', $curl);
    2929            $curl = preg_replace("/'([\s.]|\Z)/", '’$1', $curl);
    3030            $curl = preg_replace("/\(tm\)/i", '™', $curl);
Note: See TracChangeset for help on using the changeset viewer.