mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-31 11:37:14 +00: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:
parent
ae971404cc
commit
fca8cf6c0f
@ -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|
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user