diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml
index 0bfff2e39..c8cc34299 100644
--- a/.rubocop_todo.yml
+++ b/.rubocop_todo.yml
@@ -121,7 +121,6 @@ Layout/ExtraSpacing:
# Configuration parameters: IndentationWidth.
Layout/IndentAssignment:
Exclude:
- - 'app/helpers/application_helper.rb'
- 'test/unit/lib/redmine/helpers/gantt_test.rb'
# Cop supports --auto-correct.
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index f75f3e825..952c2e58a 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -1162,7 +1162,7 @@ module ApplicationHelper
end
LINKS_RE =
- %r{
+ %r{
]+?)?>(?.*?)|
(?[\s\(,\-\[\>]|^)
(?!)?
@@ -1199,7 +1199,7 @@ module ApplicationHelper
\]|
<|
$)
- }x
+ }x
HEADING_RE = /(]+)?>(.+?)<\/h(\d)>)/i unless const_defined?(:HEADING_RE)
def parse_sections(text, project, obj, attr, only_path, options)