summaryrefslogtreecommitdiffstats
path: root/system/libraries/Typography.php
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2008-11-14 18:12:14 +0100
committerDerek Jones <derek.jones@ellislab.com>2008-11-14 18:12:14 +0100
commit89cd0a752fd6f165f06a345bb04ce45529c618fc (patch)
tree8a573ffeeacd034078e757fd96160e7c0183bf7b /system/libraries/Typography.php
parentd5738d9fcafa831be8a1e709e42fdafb70d4330f (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.php6
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|$)/' => '&#8221;&#8217;$1',
// single quote smart quotes
- '/\'(\s|\W|$)/' => '&#8217;$1',
'/(^|\W|\s)\'/' => '$1&#8216;',
+ '/\'(\s|\W|$)/' => '&#8217;$1',
// double quote smart quotes
- '/"(\s|\W|$)/' => '&#8221;$1',
'/(^|\W|\s)"/' => '$1&#8220;',
-
+ '/"(\s|\W|$)/' => '&#8221;$1',
+
// apostrophes
"/(\w)'(\w)/" => '$1&#8217;$2',