From de1d0de87a033995c73afb65595fbdcb9903595a Mon Sep 17 00:00:00 2001 From: Segr Date: Wed, 24 Sep 2014 12:22:28 +0400 Subject: [PATCH] Fix close_quote_adv --- src-php/EMT.Tret.Quote.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src-php/EMT.Tret.Quote.php b/src-php/EMT.Tret.Quote.php index 6db2b40..dfb814a 100644 --- a/src-php/EMT.Tret.Quote.php +++ b/src-php/EMT.Tret.Quote.php @@ -39,17 +39,13 @@ class EMT_Tret_Quote extends EMT_Tret array( '/([a-zа-яё0-9]|\.|\&hellip\;|\!|\?|\>|\)|\:)((\"|\\\"|\«\;)+)(\<[^\>]+\>)(\.|\&hellip\;|\;|\:|\?|\!|\,|\)|\<\/|$| )/uie', '/([a-zа-яё0-9]|\.|\&hellip\;|\!|\?|\>|\)|\:)(\s+)((\"|\\\")+)(\s+)(\.|\&hellip\;|\;|\:|\?|\!|\,|\)|\<\/|$| )/uie', - '/\>(\«\;)\.($|\s|\<)/ui', - '/\>(\«\;),($|\s|\<|\S)/ui', - '/\>(\«\;):($|\s|\<|\S)/ui', + '/\>(\«\;)(\.|,|:|;|\))($|\s|\<|\S)/ui', ), 'replacement' => array( '$m[1] . str_repeat(self::QUOTE_FIRS_CLOSE, substr_count($m[2],"\"")+substr_count($m[2],"«") ) . $m[4]. $m[5]', '$m[1] .$m[2]. str_repeat(self::QUOTE_FIRS_CLOSE, substr_count($m[3],"\"")+substr_count($m[3],"«") ) . $m[5]. $m[6]', - '>».\2', - '>»,\2', - '>»:\2', + '>»\2\3', ), ), 'open_quote_adv' => array(