summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2024-01-27 06:06:29 +0000
committerGo MAEDA <maeda@farend.jp>2024-01-27 06:06:29 +0000
commitfca8cf6c0f5a3b07da467075c715a144d54da2ca (patch)
treeca26875d5356265a37d7edceac9e6a72eacb37e0
parentae971404ccacf2d158c7d3b9d381f41d362def94 (diff)
downloadredmine-fca8cf6c0f5a3b07da467075c715a144d54da2ca.tar.gz
redmine-fca8cf6c0f5a3b07da467075c715a144d54da2ca.zip
Fix RuboCop offense Style/RedundantFreeze (#38585).
git-svn-id: https://svn.redmine.org/redmine/trunk@22652 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--lib/redmine/wiki_formatting/common_mark/fixup_auto_links_filter.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/redmine/wiki_formatting/common_mark/fixup_auto_links_filter.rb b/lib/redmine/wiki_formatting/common_mark/fixup_auto_links_filter.rb
index 3cb81fd71..a949d8f09 100644
--- a/lib/redmine/wiki_formatting/common_mark/fixup_auto_links_filter.rb
+++ b/lib/redmine/wiki_formatting/common_mark/fixup_auto_links_filter.rb
@@ -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|