{"action":"closed","issue":{"url":"https://api.github.com/repos/Programacion-Web-II/eMagazine/issues/11","repository_url":"https://api.github.com/repos/Programacion-Web-II/eMagazine","labels_url":"https://api.github.com/repos/Programacion-Web-II/eMagazine/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/Programacion-Web-II/eMagazine/issues/11/comments","events_url":"https://api.github.com/repos/Programacion-Web-II/eMagazine/issues/11/events","html_url":"https://github.com/Programacion-Web-II/eMagazine/issues/11","id":157403810,"number":11,"title":"La validación de nombres no funciona arroja falso si el nombre tiene caracteres como el acento.","user":{"login":"gerAlvarez","id":13653287,"avatar_url":"https://avatars.githubusercontent.com/u/13653287?v=3","gravatar_id":"","url":"https://api.github.com/users/gerAlvarez","html_url":"https://github.com/gerAlvarez","followers_url":"https://api.github.com/users/gerAlvarez/followers","following_url":"https://api.github.com/users/gerAlvarez/following{/other_user}","gists_url":"https://api.github.com/users/gerAlvarez/gists{/gist_id}","starred_url":"https://api.github.com/users/gerAlvarez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gerAlvarez/subscriptions","organizations_url":"https://api.github.com/users/gerAlvarez/orgs","repos_url":"https://api.github.com/users/gerAlvarez/repos","events_url":"https://api.github.com/users/gerAlvarez/events{/privacy}","received_events_url":"https://api.github.com/users/gerAlvarez/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Programacion-Web-II/eMagazine/labels/bug","name":"bug","color":"ee0701"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-29T20:17:41Z","updated_at":"2016-06-23T18:31:57Z","closed_at":"2016-06-23T18:31:57Z","body":"Si trato de validar un nombre cómo **Germán Alvarez**, la validación arroja falso por la **á**.\r\nEl problema esta en que la función `ctype_alpha()` se maneja en el rango de la **a-z/A-Z** y no contempla acentos, dieresis, etc...\r\n\r\nQuizas haya que considerar usar la función `preg_match()`.\r\nEjemplo de uso: `preg_match('/^\\p{L}*$/', $_POST['name'])`\r\nFuente: [Stack Overflow](http://stackoverflow.com/questions/20177018/function-like-ctype-alpha-but-with-special-letters)\r\n\r\n"}}
{"actor":{"display_login":"Juanmanuel245"}}