lib/javascripts/pagy.js in pagy-3.2.0 vs lib/javascripts/pagy.js in pagy-3.2.1

- old
+ new

@@ -96,8 +96,8 @@ // … and when pressing enter inside the input input.addEventListener('keyup', function(e){ if (e.which === 13) handler() }.bind(this)); }; Pagy.trim = function(html, param){ - var re = new RegExp('[?&]' + param + '=1(?![&])|(?<=[?&])' + param + '=1&'); + var re = new RegExp('[?&]' + param + '=1\b(?!&)|\b' + param + '=1&'); return html.replace(re, ''); };