[TYPO3-core] RFC: #14132 Regexp for automatic line breaks in Gifbuilder is incorrect

Susanne Moog info at susannemoog.de
Wed Jun 16 21:34:34 CEST 2010


On 11.05.2010 15:29, Jigal van Hemert wrote:
> This is a SVN patch request.
> 
> 
> Type: Bugfix
> 
> 
> BT reference: http://bugs.typo3.org/view.php?id=14132
> 
> 
> 
> Branches: trunk (4.3 too?)
> 
> 
> 
> Problem: the regular expression in
> t3lib_stdGraphic::getWordPairsForLineBreak() is incorrect. The dash
> character makes a range:
> #([ -.,!:]+)#
> of everything between 'space' and 'dot'
> 
> 
> Solution: Move 'dash' character to the first position of the regexp. It
> will no longer cause a range to be formed.
> 
> 
> This is close to being a no-brainer to me :-)

committed as no-brainer to trunk rev 7939 after my +1 by reading and
testing (with regex tester).

Susanne



More information about the TYPO3-team-core mailing list