{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/css-loader/issues/96","labels_url":"https://api.github.com/repos/webpack/css-loader/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/webpack/css-loader/issues/96/comments","events_url":"https://api.github.com/repos/webpack/css-loader/issues/96/events","html_url":"https://github.com/webpack/css-loader/pull/96","id":93691906,"number":96,"title":"Fix broken composition with class names that contain characters other than [A-Za-z0-9_]","user":{"login":"rtsao","id":780408,"avatar_url":"https://avatars.githubusercontent.com/u/780408?v=3","gravatar_id":"","url":"https://api.github.com/users/rtsao","html_url":"https://github.com/rtsao","followers_url":"https://api.github.com/users/rtsao/followers","following_url":"https://api.github.com/users/rtsao/following{/other_user}","gists_url":"https://api.github.com/users/rtsao/gists{/gist_id}","starred_url":"https://api.github.com/users/rtsao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtsao/subscriptions","organizations_url":"https://api.github.com/users/rtsao/orgs","repos_url":"https://api.github.com/users/rtsao/repos","events_url":"https://api.github.com/users/rtsao/events{/privacy}","received_events_url":"https://api.github.com/users/rtsao/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-08T04:28:19Z","updated_at":"2015-07-14T20:35:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/webpack/css-loader/pulls/96","html_url":"https://github.com/webpack/css-loader/pull/96","diff_url":"https://github.com/webpack/css-loader/pull/96.diff","patch_url":"https://github.com/webpack/css-loader/pull/96.patch"},"body":"Class composition is broken with \"non-word\" (`\\w`) characters due to the regex used to split tokens.\r\n\r\nPerfectly valid classes such as `.my-class` or `.mycläss` are broken as they get split up.\r\n\r\nThis PR updates the regex to use `\\S` instead of `\\w`which allows these characters and thus fixes the problem. \r\n\r\nAdditionally, a test has been added to verify composition works with a class that contains a hyphen (which fails without the updated regex)."},"comment":{"url":"https://api.github.com/repos/webpack/css-loader/issues/comments/121375842","html_url":"https://github.com/webpack/css-loader/pull/96#issuecomment-121375842","issue_url":"https://api.github.com/repos/webpack/css-loader/issues/96","id":121375842,"user":{"login":"freeqaz","id":4573221,"avatar_url":"https://avatars.githubusercontent.com/u/4573221?v=3","gravatar_id":"","url":"https://api.github.com/users/freeqaz","html_url":"https://github.com/freeqaz","followers_url":"https://api.github.com/users/freeqaz/followers","following_url":"https://api.github.com/users/freeqaz/following{/other_user}","gists_url":"https://api.github.com/users/freeqaz/gists{/gist_id}","starred_url":"https://api.github.com/users/freeqaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freeqaz/subscriptions","organizations_url":"https://api.github.com/users/freeqaz/orgs","repos_url":"https://api.github.com/users/freeqaz/repos","events_url":"https://api.github.com/users/freeqaz/events{/privacy}","received_events_url":"https://api.github.com/users/freeqaz/received_events","type":"User","site_admin":false},"created_at":"2015-07-14T20:35:28Z","updated_at":"2015-07-14T20:35:28Z","body":"+1"}}