diff --git a/CHANGELOG.md b/CHANGELOG.md
index 822af4cc..911538bb 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,12 @@
+## 1.0.42 (2021-10-14)
+
+* fix(paginator): last page now correctly matches rex ([dcf9898](https://github.com/simonecorsi/mawesome/commit/dcf9898))
+
+
+
## 1.0.41 (2021-10-14)
+* chore(release): v1.0.41 ([884fc90](https://github.com/simonecorsi/mawesome/commit/884fc90))
* test: fixs suite ([b97833f](https://github.com/simonecorsi/mawesome/commit/b97833f))
* fix: should avoid index lock ([1d6848c](https://github.com/simonecorsi/mawesome/commit/1d6848c))
@@ -26,12 +33,3 @@
-## 1.0.37 (2021-06-23)
-
-* chore(release): v1.0.37 ([1643092](https://github.com/simonecorsi/mawesome/commit/1643092))
-* build(deps): bump glob-parent from 5.1.1 to 5.1.2 ([e558e07](https://github.com/simonecorsi/mawesome/commit/e558e07))
-* build(deps): bump hosted-git-info from 2.8.8 to 2.8.9 ([110a667](https://github.com/simonecorsi/mawesome/commit/110a667))
-* build(deps): bump normalize-url from 4.5.0 to 4.5.1 ([202d6fe](https://github.com/simonecorsi/mawesome/commit/202d6fe))
-
-
-
diff --git a/index.js b/index.js
index fd12ce3b..d6583766 100644
--- a/index.js
+++ b/index.js
@@ -21415,7 +21415,7 @@ function getNextPage(links) {
if (!next || !last)
return null;
const matchNext = next.uri.match(/page=([0-9]*)/);
- const matchLast = next.uri.match(/page=([0-9]*)/);
+ const matchLast = last.uri.match(/page=([0-9]*)/);
if (!matchNext || !matchLast)
return null;
if (matchNext[1] === matchLast[1])
diff --git a/package.json b/package.json
index 3a8d8672..c3e3b069 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "mawesome",
- "version": "1.0.41",
+ "version": "1.0.42",
"description": "Generate awesome list from user starred repositories",
"main": "index.js",
"author": "Simone Corsi",