{"action":"created","issue":{"url":"https://api.github.com/repos/alibaba/nginx-http-concat/issues/25","labels_url":"https://api.github.com/repos/alibaba/nginx-http-concat/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/alibaba/nginx-http-concat/issues/25/comments","events_url":"https://api.github.com/repos/alibaba/nginx-http-concat/issues/25/events","html_url":"https://github.com/alibaba/nginx-http-concat/issues/25","id":59454600,"number":25,"title":"concat语法支持问题","user":{"login":"zzjin","id":679757,"avatar_url":"https://avatars.githubusercontent.com/u/679757?v=3","gravatar_id":"","url":"https://api.github.com/users/zzjin","html_url":"https://github.com/zzjin","followers_url":"https://api.github.com/users/zzjin/followers","following_url":"https://api.github.com/users/zzjin/following{/other_user}","gists_url":"https://api.github.com/users/zzjin/gists{/gist_id}","starred_url":"https://api.github.com/users/zzjin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zzjin/subscriptions","organizations_url":"https://api.github.com/users/zzjin/orgs","repos_url":"https://api.github.com/users/zzjin/repos","events_url":"https://api.github.com/users/zzjin/events{/privacy}","received_events_url":"https://api.github.com/users/zzjin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-02T09:05:53Z","updated_at":"2015-03-02T09:32:10Z","closed_at":null,"body":"我们之前一直在用tengine的concat模块,之前都是手动修改源文件里面的多个script标签到一个??格式的标签的\r\n但是最近加入了一个自动编译的脚本,会遍历所有的script标签,按照LCP(longest common prefix)算法提取连接里面的前缀,再拼接到地址里面去,\r\n比如有两个script标签\r\n```\r\n<script type=\"text/javascript\" src=\"/Public/Vendor/jquery.func1.js\"></script>\r\n<script type=\"text/javascript\" src=\"/Public/Vendor/jquery.func2.js\"></script>\r\n```\r\n之前人工合并的时候会改写成:\r\n```\r\n<script type=\"text/javascript\" src=\"/Public/Vendor/??jquery.func1.js,jquery.func2.js\"></script>\r\n```\r\n执行就是好的,但是采用了自动脚本的LCP语法之后,会被自动替换成\r\n```\r\n<script type=\"text/javascript\" src=\"/Public/Vendor/jquery.func??1.js,2.js\"></script>\r\n```\r\n这样这个模块就不支持了.\r\n我在文档里面没有看到说明说两个问号比武放在`/`这个位置的正后面?"},"comment":{"url":"https://api.github.com/repos/alibaba/nginx-http-concat/issues/comments/76681471","html_url":"https://github.com/alibaba/nginx-http-concat/issues/25#issuecomment-76681471","issue_url":"https://api.github.com/repos/alibaba/nginx-http-concat/issues/25","id":76681471,"user":{"login":"zzjin","id":679757,"avatar_url":"https://avatars.githubusercontent.com/u/679757?v=3","gravatar_id":"","url":"https://api.github.com/users/zzjin","html_url":"https://github.com/zzjin","followers_url":"https://api.github.com/users/zzjin/followers","following_url":"https://api.github.com/users/zzjin/following{/other_user}","gists_url":"https://api.github.com/users/zzjin/gists{/gist_id}","starred_url":"https://api.github.com/users/zzjin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zzjin/subscriptions","organizations_url":"https://api.github.com/users/zzjin/orgs","repos_url":"https://api.github.com/users/zzjin/repos","events_url":"https://api.github.com/users/zzjin/events{/privacy}","received_events_url":"https://api.github.com/users/zzjin/received_events","type":"User","site_admin":false},"created_at":"2015-03-02T09:32:10Z","updated_at":"2015-03-02T09:32:10Z","body":"我们现在已经改过来了,但是如果文件名的前缀较多或者一次合并十来个文件的时候还是希望能最小化生成的路径长度."}}