stashing PCRE modifications

This commit is contained in:
rodneyrehm
2011-12-18 17:21:44 +00:00
parent d0b6b69f7c
commit 75c271079d
15 changed files with 731 additions and 688 deletions

View File

@@ -22,7 +22,7 @@
function smarty_modifiercompiler_count_sentences($params, $compiler)
{
// find periods, question marks, exclamation marks with a word before but not after.
return 'preg_match_all("#\w[\.\?\!](\W|$)#uS", ' . $params[0] . ', $tmp)';
return 'preg_match_all("#\w[\.\?\!](\W|$)#S' . SMARTY_PREG_MODIFIER . '", ' . $params[0] . ', $tmp)';
}
?>