combo-url-parser
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -20,5 +20,6 @@ var parser = require('./parser.js'); | ||
return function (req, res, next) { | ||
var urls = parser(req.url); | ||
if (urls.length === 1) { | ||
if (!urls) { | ||
next(); | ||
@@ -25,0 +26,0 @@ return; |
@@ -21,3 +21,3 @@ var URL = require("url"); | ||
if (idx1 === -1) { | ||
return [url]; | ||
return; | ||
} | ||
@@ -24,0 +24,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"description": "A util to parser comboed url", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
@@ -24,1 +24,8 @@ [![build status](https://secure.travis-ci.org/maxbbn/combo-url-parser.png)](http://travis-ci.org/maxbbn/combo-url-parser) | ||
```` | ||
## ChangeLog | ||
### 0.1.1 | ||
- 修复单个 combo 无法访问的问题 | ||
- 如果 URL 中不符合parser规范, 返回 null |
4216
30