|
Posted by "messju mohr" on 11/24/05 14:55
On Thu, Nov 24, 2005 at 02:23:15PM +0200, Dep wrote:
> Hello, people!
> I'm very new to smarty, and while studying variables and modifiers I
> stumbled upon the following situation with capitalize modifier:
> template
> {"The world didn't end yesterday"|capitalize}
>
> produces output
> The World Didn'T End Yesterday
>
> Letter T after the apostrophe isn't exactly the new word? So, is this
> a bug or is this on purpose?
php's pcre-functions see the "'" as a word delimiter.
so count this behaviour as "on purpose".
> Thanks,
> Dmitriy
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
Navigation:
[Reply to this message]
|