lib/gitlab/page_links.rb in gitlab-4.6.1 vs lib/gitlab/page_links.rb in gitlab-4.7.0
- old
+ new
@@ -5,10 +5,10 @@
#
# @private
class PageLinks
HEADER_LINK = 'Link'
DELIM_LINKS = ','
- LINK_REGEX = /<([^>]+)>; rel=\"([^\"]+)\"/
+ LINK_REGEX = /<([^>]+)>; rel=\"([^\"]+)\"/.freeze
METAS = %w[last next first prev].freeze
attr_accessor(*METAS)
def initialize(headers)