{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/file-loader/issues/31","repository_url":"https://api.github.com/repos/webpack/file-loader","labels_url":"https://api.github.com/repos/webpack/file-loader/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/webpack/file-loader/issues/31/comments","events_url":"https://api.github.com/repos/webpack/file-loader/issues/31/events","html_url":"https://github.com/webpack/file-loader/issues/31","id":98314551,"number":31,"title":"Match url and use against filename","user":{"login":"leonardoanalista","id":501420,"avatar_url":"https://avatars.githubusercontent.com/u/501420?v=3","gravatar_id":"","url":"https://api.github.com/users/leonardoanalista","html_url":"https://github.com/leonardoanalista","followers_url":"https://api.github.com/users/leonardoanalista/followers","following_url":"https://api.github.com/users/leonardoanalista/following{/other_user}","gists_url":"https://api.github.com/users/leonardoanalista/gists{/gist_id}","starred_url":"https://api.github.com/users/leonardoanalista/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leonardoanalista/subscriptions","organizations_url":"https://api.github.com/users/leonardoanalista/orgs","repos_url":"https://api.github.com/users/leonardoanalista/repos","events_url":"https://api.github.com/users/leonardoanalista/events{/privacy}","received_events_url":"https://api.github.com/users/leonardoanalista/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2015-07-31T04:35:10Z","updated_at":"2016-09-28T01:45:23Z","closed_at":null,"body":"Hi,\r\n\r\nI am trying to match and use it on the loader: E.g.:\r\n```\r\n      {\r\n        test: /(.*)\\/assets\\/img\\/(.*)\\.(svg|png|gif|jpg|jpg)$/,\r\n        loader: 'file?name=/assets/[0]/img/[name].[ext]'\r\n      },\r\n```\r\n\r\nLooking at: https://github.com/webpack/file-loader/blob/master/test/correct-filename.test.js\r\nI can't find an example of:\r\n\r\n\"[N] the N-th match obtained from matching the current file name against the query param regExp\"\r\n\r\nIs this possible?\r\n\r\ncheers\r\nLeonardo"},"comment":{"url":"https://api.github.com/repos/webpack/file-loader/issues/comments/250050119","html_url":"https://github.com/webpack/file-loader/issues/31#issuecomment-250050119","issue_url":"https://api.github.com/repos/webpack/file-loader/issues/31","id":250050119,"user":{"login":"Benno007","id":313195,"avatar_url":"https://avatars.githubusercontent.com/u/313195?v=3","gravatar_id":"","url":"https://api.github.com/users/Benno007","html_url":"https://github.com/Benno007","followers_url":"https://api.github.com/users/Benno007/followers","following_url":"https://api.github.com/users/Benno007/following{/other_user}","gists_url":"https://api.github.com/users/Benno007/gists{/gist_id}","starred_url":"https://api.github.com/users/Benno007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Benno007/subscriptions","organizations_url":"https://api.github.com/users/Benno007/orgs","repos_url":"https://api.github.com/users/Benno007/repos","events_url":"https://api.github.com/users/Benno007/events{/privacy}","received_events_url":"https://api.github.com/users/Benno007/received_events","type":"User","site_admin":false},"created_at":"2016-09-28T01:45:23Z","updated_at":"2016-09-28T01:45:23Z","body":"That didn't work for me... trying to get the query string applied in the file for cache busting icon fonts. Just kept coming out as font.eot?[1] :(\r\n```\r\n{\r\n                test: /\\.(eot|ttf|woff|woff2|svg)/i,\r\n                loader: 'url-loader?regExp=\\\\.[ext]\\\\?(.+)&limit=1&name=assets/[name].[ext]?[1]\r\n}\r\n```"}}
{"actor":{"display_login":"Benno007"}}