From: Fabien Potencier Date: Wed, 2 Oct 2013 19:38:09 +0000 (+0200) Subject: feature #1209 added the starts with, ends with, and matches operators (fabpot) X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=606f88b1bc1bae7e9e2d003f4f770b5c4cfea220;p=konrad%2Ftwig.git feature #1209 added the starts with, ends with, and matches operators (fabpot) This PR was merged into the master branch. Discussion ---------- added the starts with, ends with, and matches operators Adds three new operators: * `ends with` * `starts with` * `matches` I've not added the `contains` operator as it would be equivalent with the existing `in` one. TODO: * [x] add docs * [x] fix on PHP 5.2. Commits ------- b66181d added the starts with, ends with, and matches operators --- 606f88b1bc1bae7e9e2d003f4f770b5c4cfea220 diff --cc CHANGELOG index 483f107,1c03184..2994052 --- a/CHANGELOG +++ b/CHANGELOG @@@ -1,6 -1,6 +1,7 @@@ * 1.14.0 (2013-XX-XX) + * fixed usage of the html_attr escaping strategy to avoid double-escaping with the html strategy + * added new operators: ends with, starts with, and matches * fixed some compatibility issues with HHVM * added a way to add custom escaping strategies * fixed the C extension compilation on Windows