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

JoH asenau info at cybercraft.de
Wed Jun 16 20:18:57 CEST 2010


>> 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 :-)

That's indeed a no brainer.

+1 by reading

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
Xing: http://contact.cybercraft.de
Twitter: http://twitter.com/bunnyfield
TYPO3 cookbook (2nd edition): http://www.typo3experts.com


More information about the TYPO3-team-core mailing list