github-parse-link
Advanced tools
+3
-3
@@ -8,6 +8,6 @@ 'use strict'; | ||
| return link.split(', ').reduce(function (result, part) { | ||
| var matcher = part.match('<(.*?)>; rel="(.*?)"'); | ||
| var match = part.match('<(.*?)>; rel="(.*?)"'); | ||
| if (matcher.length === 3) { | ||
| result[matcher[2]] = matcher[1]; | ||
| if (match && match.length === 3) { | ||
| result[match[2]] = match[1]; | ||
| } | ||
@@ -14,0 +14,0 @@ |
+1
-1
| { | ||
| "name": "github-parse-link", | ||
| "version": "1.1.0", | ||
| "version": "1.1.1", | ||
| "description": "Parse GitHub link header response", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
2872
0.03%