diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 79167444e20..05a56db6362 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -52,7 +52,7 @@ def render_comment_body(comment) # replaces inline title suggestion(e.g: {New Title}) with the required link to change the title def title_suggestion(comment) - comment.body.gsub(/\[propose:title](.*?)\[\/propose]/) do |_title_suggestion| + comment.body.gsub(/\[propose:title\](.*?)\[\/propose\]/) do |title_suggestion| a = ActionController::Base.new is_creator = current_user.drupal_user == Node.find(comment.nid).author title = Regexp.last_match(1)