Changeset 985

Show
Ignore:
Timestamp:
03/22/04 01:34:32 (5 years ago)
Author:
saxmatt
Message:

Texturize kung-foo

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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);