{"action":"created","issue":{"url":"https://api.github.com/repos/twigphp/Twig/issues/1652","labels_url":"https://api.github.com/repos/twigphp/Twig/issues/1652/labels{/name}","comments_url":"https://api.github.com/repos/twigphp/Twig/issues/1652/comments","events_url":"https://api.github.com/repos/twigphp/Twig/issues/1652/events","html_url":"https://github.com/twigphp/Twig/issues/1652","id":60767462,"number":1652,"title":"Great demand for ucfirst.","user":{"login":"Boycce","id":2629988,"avatar_url":"https://avatars.githubusercontent.com/u/2629988?v=3","gravatar_id":"","url":"https://api.github.com/users/Boycce","html_url":"https://github.com/Boycce","followers_url":"https://api.github.com/users/Boycce/followers","following_url":"https://api.github.com/users/Boycce/following{/other_user}","gists_url":"https://api.github.com/users/Boycce/gists{/gist_id}","starred_url":"https://api.github.com/users/Boycce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Boycce/subscriptions","organizations_url":"https://api.github.com/users/Boycce/orgs","repos_url":"https://api.github.com/users/Boycce/repos","events_url":"https://api.github.com/users/Boycce/events{/privacy}","received_events_url":"https://api.github.com/users/Boycce/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-03-12T03:53:22Z","updated_at":"2015-03-25T21:57:38Z","closed_at":null,"body":"There has been a great demand for `ucfirst` which has been ignored several times in partial support to the filters `capitalize`, `title`, etc. #764 #1576\r\n\r\nThe fact that it changes every character instead of just the expected character causes misleading ideas from devs coming from JS and PHP at least.\r\nAsked to formulate our own custom twig extension does not help this project evolve.\r\n\r\nI commend these filters\r\n---\r\n```\r\n{{ 'HelloWorld'|lcfirst }}\r\n{# outputs 'helloWorld' #}\r\n\r\n{{ 'hello world!'|ucfirst }}\r\n{# outputs 'Hello world!' #}\r\n\r\n{{ 'hello world!'|ucwords }}\r\n{# outputs 'Hello World!' #}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/twigphp/Twig/issues/comments/86231158","html_url":"https://github.com/twigphp/Twig/issues/1652#issuecomment-86231158","issue_url":"https://api.github.com/repos/twigphp/Twig/issues/1652","id":86231158,"user":{"login":"reFX-Mike","id":2496353,"avatar_url":"https://avatars.githubusercontent.com/u/2496353?v=3","gravatar_id":"","url":"https://api.github.com/users/reFX-Mike","html_url":"https://github.com/reFX-Mike","followers_url":"https://api.github.com/users/reFX-Mike/followers","following_url":"https://api.github.com/users/reFX-Mike/following{/other_user}","gists_url":"https://api.github.com/users/reFX-Mike/gists{/gist_id}","starred_url":"https://api.github.com/users/reFX-Mike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reFX-Mike/subscriptions","organizations_url":"https://api.github.com/users/reFX-Mike/orgs","repos_url":"https://api.github.com/users/reFX-Mike/repos","events_url":"https://api.github.com/users/reFX-Mike/events{/privacy}","received_events_url":"https://api.github.com/users/reFX-Mike/received_events","type":"User","site_admin":false},"created_at":"2015-03-25T21:57:38Z","updated_at":"2015-03-25T21:57:38Z","body":"You can even save one more character ;)\r\n\r\n{{ foo[:1]|upper ~ foo[1:] }}"}}