{"action":"created","issue":{"url":"https://api.github.com/repos/Geal/nom/issues/392","repository_url":"https://api.github.com/repos/Geal/nom","labels_url":"https://api.github.com/repos/Geal/nom/issues/392/labels{/name}","comments_url":"https://api.github.com/repos/Geal/nom/issues/392/comments","events_url":"https://api.github.com/repos/Geal/nom/issues/392/events","html_url":"https://github.com/Geal/nom/issues/392","id":194803341,"number":392,"title":"`take_while1_s!` behaves like `take_while1!`","user":{"login":"panicbit","id":628445,"avatar_url":"https://avatars.githubusercontent.com/u/628445?v=3","gravatar_id":"","url":"https://api.github.com/users/panicbit","html_url":"https://github.com/panicbit","followers_url":"https://api.github.com/users/panicbit/followers","following_url":"https://api.github.com/users/panicbit/following{/other_user}","gists_url":"https://api.github.com/users/panicbit/gists{/gist_id}","starred_url":"https://api.github.com/users/panicbit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/panicbit/subscriptions","organizations_url":"https://api.github.com/users/panicbit/orgs","repos_url":"https://api.github.com/users/panicbit/repos","events_url":"https://api.github.com/users/panicbit/events{/privacy}","received_events_url":"https://api.github.com/users/panicbit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-11T00:25:38Z","updated_at":"2017-02-24T14:56:06Z","closed_at":null,"body":"Expected behavior:\r\n`take_while1_s!` accepts `char -> bool` and returs `&str`\r\n\r\nActual behavior:\r\n`take_while1_s!` accepts `u8 -> bool` and returs `&[u8]`\r\n\r\nnom: 2.0.1"},"comment":{"url":"https://api.github.com/repos/Geal/nom/issues/comments/282311121","html_url":"https://github.com/Geal/nom/issues/392#issuecomment-282311121","issue_url":"https://api.github.com/repos/Geal/nom/issues/392","id":282311121,"user":{"login":"Geal","id":119296,"avatar_url":"https://avatars.githubusercontent.com/u/119296?v=3","gravatar_id":"","url":"https://api.github.com/users/Geal","html_url":"https://github.com/Geal","followers_url":"https://api.github.com/users/Geal/followers","following_url":"https://api.github.com/users/Geal/following{/other_user}","gists_url":"https://api.github.com/users/Geal/gists{/gist_id}","starred_url":"https://api.github.com/users/Geal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Geal/subscriptions","organizations_url":"https://api.github.com/users/Geal/orgs","repos_url":"https://api.github.com/users/Geal/repos","events_url":"https://api.github.com/users/Geal/events{/privacy}","received_events_url":"https://api.github.com/users/Geal/received_events","type":"User","site_admin":false},"created_at":"2017-02-24T14:56:06Z","updated_at":"2017-02-24T14:56:06Z","body":"could you share the code you're using and the errors you get? Because this works:\r\n```rust\r\nfn alphabetic(chr: char) -> bool { (chr >= 0x41 as char && chr <= 0x5A as char) || (chr >= 0x61 as char && chr <= 0x7A as char) }\r\nnamed!( alpha<&str,&str>, take_while1_s!( alphabetic ) );\r\nlet r = alpha(\"abcd\\nefgh\");\r\nassert_eq!(r, Done(\"\\nefgh\", \"abcd\"));\r\n```"}}
{"actor":{"display_login":"Geal"}}