]> source.dussan.org Git - redmine.git/commitdiff
Fix RuboCop offense Style/RedundantFreeze (#38585).
authorGo MAEDA <maeda@farend.jp>
Sat, 27 Jan 2024 06:06:29 +0000 (06:06 +0000)
committerGo MAEDA <maeda@farend.jp>
Sat, 27 Jan 2024 06:06:29 +0000 (06:06 +0000)
git-svn-id: https://svn.redmine.org/redmine/trunk@22652 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/wiki_formatting/common_mark/fixup_auto_links_filter.rb

index 3cb81fd7177acddb383dbc9a0cd18dde25f9bad2..a949d8f097d9c7042e08391a9b03013e1f1e95c0 100644 (file)
@@ -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|