From 89cd0a752fd6f165f06a345bb04ce45529c618fc Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Fri, 14 Nov 2008 17:12:14 +0000 Subject: switched order of parsing opening and closing curly quotes for greater accuracy --- system/libraries/Typography.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'system/libraries/Typography.php') 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', -- cgit v1.2.3-24-g4f1b