{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang-nursery/regex/issues/280","repository_url":"https://api.github.com/repos/rust-lang-nursery/regex","labels_url":"https://api.github.com/repos/rust-lang-nursery/regex/issues/280/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang-nursery/regex/issues/280/comments","events_url":"https://api.github.com/repos/rust-lang-nursery/regex/issues/280/events","html_url":"https://github.com/rust-lang-nursery/regex/issues/280","id":176278791,"number":280,"title":"incorrect parsing of regex?","user":{"login":"blaenk","id":84680,"avatar_url":"https://avatars.githubusercontent.com/u/84680?v=3","gravatar_id":"","url":"https://api.github.com/users/blaenk","html_url":"https://github.com/blaenk","followers_url":"https://api.github.com/users/blaenk/followers","following_url":"https://api.github.com/users/blaenk/following{/other_user}","gists_url":"https://api.github.com/users/blaenk/gists{/gist_id}","starred_url":"https://api.github.com/users/blaenk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blaenk/subscriptions","organizations_url":"https://api.github.com/users/blaenk/orgs","repos_url":"https://api.github.com/users/blaenk/repos","events_url":"https://api.github.com/users/blaenk/events{/privacy}","received_events_url":"https://api.github.com/users/blaenk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rust-lang-nursery/regex/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-09-12T01:39:54Z","updated_at":"2016-09-12T20:40:29Z","closed_at":"2016-09-12T20:37:45Z","body":"I hadn't worked with rust in months so I made major updates of both rustc and my dependencies (including regex). I noticed that my program was now failing in a weird way and I finally tracked it down to this bug (regression?), either that or I'm doing something very wrong here:\r\n\r\n``` rust\r\nlet re = Regex::new(r\"(^\\.)|(~$)\").unwrap();\r\nassert!(!re.is_match(\"favicon.png\"));\r\n```\r\n\r\nThat assertion is failing even though it shouldn't AFAIK. It certainly didn't before.\r\n\r\nThe regex is supposed to match if the string begins with `.` or ends with `~`. Even without the groupings/capture groups it fails. Somehow it is matching on `\"favicon.png\"`.\r\n\r\nI can't imagine something like this got through though so I'm thinking it may be a misunderstanding I have of how that regex should work. I tried this just now in the chrome console with javascript and I don't see this problem there, though I am aware that regex implementations tend to differ, I wasn't aware that they differ in something like this."},"comment":{"url":"https://api.github.com/repos/rust-lang-nursery/regex/issues/comments/246485062","html_url":"https://github.com/rust-lang-nursery/regex/issues/280#issuecomment-246485062","issue_url":"https://api.github.com/repos/rust-lang-nursery/regex/issues/280","id":246485062,"user":{"login":"blaenk","id":84680,"avatar_url":"https://avatars.githubusercontent.com/u/84680?v=3","gravatar_id":"","url":"https://api.github.com/users/blaenk","html_url":"https://github.com/blaenk","followers_url":"https://api.github.com/users/blaenk/followers","following_url":"https://api.github.com/users/blaenk/following{/other_user}","gists_url":"https://api.github.com/users/blaenk/gists{/gist_id}","starred_url":"https://api.github.com/users/blaenk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blaenk/subscriptions","organizations_url":"https://api.github.com/users/blaenk/orgs","repos_url":"https://api.github.com/users/blaenk/repos","events_url":"https://api.github.com/users/blaenk/events{/privacy}","received_events_url":"https://api.github.com/users/blaenk/received_events","type":"User","site_admin":false},"created_at":"2016-09-12T20:40:29Z","updated_at":"2016-09-12T20:40:29Z","body":"Thank you very much once again!!"}}
{"actor":{"display_login":"blaenk"}}