Skip to content

Commit 191e958

Browse files
authored
Fix download count
1 parent b5a7d57 commit 191e958

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

_includes/download-count.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var handleApiResponse = function() {
1111
);
1212

1313
var linkHeader = xmlHttp.getResponseHeader("Link");
14-
var nextUrlMatch = linkHeader.match(/<(.+)>; rel="next"/);
14+
var nextUrlMatch = linkHeader.match(/<([^<]+)>; rel="next"/);
1515
if (nextUrlMatch) {
1616
xmlHttp = new XMLHttpRequest();
1717
xmlHttp.onreadystatechange = handleApiResponse;

0 commit comments

Comments
 (0)