You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: html_text_helper.rb
    path of file: ./repos/brimir/app/helpers
    
    the code of the file until where you have to start completion: # Brimir is a helpdesk system to handle email support requests.
# Copyright (C) 2012-2015 Ivaldi https://ivaldi.nl/
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This pro
    
  def match_values_inside_brackets_and_replace_with_variable_assignments(content, options={})
    # grab everything between the brackets
    matches = content.to_enum(:scan, /(?<=\[)([^\]]+)(?=\])/).map {$&}
    # replace the brackets with options
    matches.each do |match|
      variable = options[match.to_sym]
      content = content.gsub(/\[(#{match}?)\]/, variable) if variable
    end
    # return content
    content
  end