Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ddnexus committed Dec 3, 2024
1 parent 4816467 commit 2ad6ddb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gem/lib/pagy/extras/trim.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def pagy_anchor(pagy, **_)
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
Expand Down

0 comments on commit 2ad6ddb

Please sign in to comment.