mirror of
https://github.com/redmine/redmine.git
synced 2026-03-04 11:31:31 +01:00
Fix RuboCop offense Style/RedundantFreeze (#38585).
git-svn-id: https://svn.redmine.org/redmine/trunk@22652 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -27,8 +27,8 @@ module Redmine
|
||||
# - autolinked hi res image names that look like email addresses:
|
||||
# <a href="mailto:printscreen@2x.png">printscreen@2x.png</a>
|
||||
class FixupAutoLinksFilter < HTML::Pipeline::Filter
|
||||
USER_LINK_PREFIX = /(@|user:)\z/.freeze
|
||||
HIRES_IMAGE = /.+@\dx\.(bmp|gif|jpg|jpe|jpeg|png)\z/.freeze
|
||||
USER_LINK_PREFIX = /(@|user:)\z/
|
||||
HIRES_IMAGE = /.+@\dx\.(bmp|gif|jpg|jpe|jpeg|png)\z/
|
||||
|
||||
def call
|
||||
doc.search("a").each do |node|
|
||||
|
||||
Reference in New Issue
Block a user