{"action":"opened","issue":{"url":"https://api.github.com/repos/amethyst/tools/issues/53","repository_url":"https://api.github.com/repos/amethyst/tools","labels_url":"https://api.github.com/repos/amethyst/tools/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/amethyst/tools/issues/53/comments","events_url":"https://api.github.com/repos/amethyst/tools/issues/53/events","html_url":"https://github.com/amethyst/tools/issues/53","id":324755508,"number":53,"title":"regex parse error on windows","user":{"login":"angelrain1","id":18391140,"avatar_url":"https://avatars2.githubusercontent.com/u/18391140?v=4","gravatar_id":"","url":"https://api.github.com/users/angelrain1","html_url":"https://github.com/angelrain1","followers_url":"https://api.github.com/users/angelrain1/followers","following_url":"https://api.github.com/users/angelrain1/following{/other_user}","gists_url":"https://api.github.com/users/angelrain1/gists{/gist_id}","starred_url":"https://api.github.com/users/angelrain1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angelrain1/subscriptions","organizations_url":"https://api.github.com/users/angelrain1/orgs","repos_url":"https://api.github.com/users/angelrain1/repos","events_url":"https://api.github.com/users/angelrain1/events{/privacy}","received_events_url":"https://api.github.com/users/angelrain1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-21T00:19:56Z","updated_at":"2018-05-21T00:19:56Z","closed_at":null,"author_association":"NONE","body":"~~~~~~~\r\nthread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Syntax(\r\n\r\nregex parse error:\r\n]) (?<last>[^\r\n     ^\r\nerror: unrecognized flag\r\n)', libcore\\result.rs:945:5\r\nnote: Run with `RUST_BACKTRACE=1` for a backtrace.\r\n~~~~~~~\r\n\r\ntools/src/templates.rs 119 line\r\n~~~~~~~\r\nRegex::new(\"(?<last>[^\\r])\\n\")\r\n~~~~~~~\r\n\r\n##### REGEX example is\r\n~~~~~~~\r\nlet re = Regex::new(r\"(?P<last>[^,\\s]+),\\s+(?P<first>\\S+)\").unwrap();\r\nlet result = re.replace(\"Springsteen, Bruce\", \"$first $last\");\r\nassert_eq!(result, \"Bruce Springsteen\");\r\n~~~~~~~\r\n\r\nmaybe **Regex::new(\"(?P<last>[^\\r])\\n\")   ** is rignt?\r\n"}}
{"actor":{"display_login":"angelrain1"}}