diff options
author | Derek Jones <derek.jones@ellislab.com> | 2008-11-14 18:12:14 +0100 |
---|---|---|
committer | Derek Jones <derek.jones@ellislab.com> | 2008-11-14 18:12:14 +0100 |
commit | 89cd0a752fd6f165f06a345bb04ce45529c618fc (patch) | |
tree | 8a573ffeeacd034078e757fd96160e7c0183bf7b /system/libraries/Typography.php | |
parent | d5738d9fcafa831be8a1e709e42fdafb70d4330f (diff) |
switched order of parsing opening and closing curly quotes for greater accuracy
Diffstat (limited to 'system/libraries/Typography.php')
-rw-r--r-- | system/libraries/Typography.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/system/libraries/Typography.php b/system/libraries/Typography.php index 0502eef1e..808a76953 100644 --- a/system/libraries/Typography.php +++ b/system/libraries/Typography.php @@ -246,13 +246,13 @@ class CI_Typography { '/"\'(\s|\W|$)/' => '”’$1', // single quote smart quotes - '/\'(\s|\W|$)/' => '’$1', '/(^|\W|\s)\'/' => '$1‘', + '/\'(\s|\W|$)/' => '’$1', // double quote smart quotes - '/"(\s|\W|$)/' => '”$1', '/(^|\W|\s)"/' => '$1“', - + '/"(\s|\W|$)/' => '”$1', + // apostrophes "/(\w)'(\w)/" => '$1’$2', |