Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

Commit

Permalink
Pager would not load beyond 9 changed regex to facilitate pagers 10, …
Browse files Browse the repository at this point in the history
…11 etcetc
  • Loading branch information
Edwin Jacobs committed Dec 14, 2020
1 parent bd5ffed commit bb3897c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion view/frontend/web/js/toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ define([
event.preventDefault();
var anchor = $(event.target).closest('a');
var page = anchor.attr('href') || '';
var pageMatch = new RegExp('[?&]p=(\\\d?)').exec(page);
var pageMatch = new RegExp('[?&]p=(\\\d+)').exec(page);
var pageValue = 1;
if (pageMatch) {
pageValue = pageMatch[1];
Expand Down

0 comments on commit bb3897c

Please sign in to comment.