[TYPO3-core] RFC: EM: inconsistent line ending while saving ext_emconf.php
Dmitry Dulepov
dmitry at typo3.org
Wed Jan 24 14:18:24 CET 2007
Hi!
Ingmar Schlecht wrote:
> Dmitry Dulepov wrote:
>> + return preg_replace('/\r/', '', $code);
>
> Looks good, but wouldn't a simple str_replace() do just as well here?
May be... I just used to regular expressions, so automatically use them
if I can... So it should be:
+ return str_replace(chr(13), '', $code);
Right?
--
Dmitry Dulepov
Web: http://typo3bloke.net/
Skype: callto:liels_bugs
"It is our choices, that show what we truly are,
far more than our abilities." (A.P.W.B.D.)
More information about the TYPO3-team-core
mailing list