lib/pagy/extras/trim.rb in pagy-9.3.2 vs lib/pagy/extras/trim.rb in pagy-9.3.3

- old
+ new

@@ -18,10 +18,10 @@ pagy_trim(pagy, a) # in method for isolated testing end end - # Remove the the :page_param param from the first page anchor + # Remove the :page_param param from the first page anchor def pagy_trim(pagy, a) a.sub!(/[?&]#{pagy.vars[:page_param]}=1\b(?!&)|\b#{pagy.vars[:page_param]}=1&/, '') end end Frontend.prepend TrimExtra