{"action":"created","issue":{"url":"https://api.github.com/repos/goddyZhao/nproxy/issues/25","repository_url":"https://api.github.com/repos/goddyZhao/nproxy","labels_url":"https://api.github.com/repos/goddyZhao/nproxy/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/goddyZhao/nproxy/issues/25/comments","events_url":"https://api.github.com/repos/goddyZhao/nproxy/issues/25/events","html_url":"https://github.com/goddyZhao/nproxy/issues/25","id":17671966,"number":25,"title":"多条匹配规则","user":{"login":"Jarvis-Q","id":2383014,"avatar_url":"https://avatars.githubusercontent.com/u/2383014?v=3","gravatar_id":"","url":"https://api.github.com/users/Jarvis-Q","html_url":"https://github.com/Jarvis-Q","followers_url":"https://api.github.com/users/Jarvis-Q/followers","following_url":"https://api.github.com/users/Jarvis-Q/following{/other_user}","gists_url":"https://api.github.com/users/Jarvis-Q/gists{/gist_id}","starred_url":"https://api.github.com/users/Jarvis-Q/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jarvis-Q/subscriptions","organizations_url":"https://api.github.com/users/Jarvis-Q/orgs","repos_url":"https://api.github.com/users/Jarvis-Q/repos","events_url":"https://api.github.com/users/Jarvis-Q/events{/privacy}","received_events_url":"https://api.github.com/users/Jarvis-Q/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2013-08-06T03:45:44Z","updated_at":"2016-04-11T08:57:09Z","closed_at":null,"body":"哈哈，希望这个可以增强下。\r\n当多条规则匹配时，如果实际想匹配的是第二条，但是第一条却匹配了（发现匹配即中止查找），响应替换表达式却找不到该路径(实际上的期望值该是第二条替换)，在控制台的打印信息中实际上是第一条出错？（用户的潜意识是第二条配置出错了!）\r\n建议：\r\n一：报错情况下 控制台输出pattern或输出实际的responder路径（比如期望值是patternB: X:/file/b.js,但实际上因为规则写的有问题，替换的patternA: X:/file/a.js）\r\n\r\n二：嘿嘿。这种需求不知是否广泛(combo的某种形式)。\r\nhttp://a.b.c/??后跟的文件动态的，或者可能有多重组合，如果为每条匹配情况写一条规则稍显蛋疼.可以这样的话就好了,类似：\r\n{\r\n  pattern: /(?=-min)/g,\r\n  responder:{\r\n    dir: 'x:\\\\aaa\\\\bbb\\\\',\r\n    src: '$1'  //某种形式的分组全部匹配，自动转化成数组\r\n  }\r\n}\r\n"},"comment":{"url":"https://api.github.com/repos/goddyZhao/nproxy/issues/comments/208238579","html_url":"https://github.com/goddyZhao/nproxy/issues/25#issuecomment-208238579","issue_url":"https://api.github.com/repos/goddyZhao/nproxy/issues/25","id":208238579,"user":{"login":"smalike","id":2398399,"avatar_url":"https://avatars.githubusercontent.com/u/2398399?v=3","gravatar_id":"","url":"https://api.github.com/users/smalike","html_url":"https://github.com/smalike","followers_url":"https://api.github.com/users/smalike/followers","following_url":"https://api.github.com/users/smalike/following{/other_user}","gists_url":"https://api.github.com/users/smalike/gists{/gist_id}","starred_url":"https://api.github.com/users/smalike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smalike/subscriptions","organizations_url":"https://api.github.com/users/smalike/orgs","repos_url":"https://api.github.com/users/smalike/repos","events_url":"https://api.github.com/users/smalike/events{/privacy}","received_events_url":"https://api.github.com/users/smalike/received_events","type":"User","site_admin":false},"created_at":"2016-04-11T08:57:09Z","updated_at":"2016-04-11T08:57:09Z","body":"亲，什么时候提供正则版的 combo 映射呢？一个一个写太难受了。"}}