class Thor::Actions::InjectIntoFile

def revoke!

def revoke!
  say_status :revoke
  regexp = if @behavior == :after
    content = '\1\2'
    /(#{flag})(.*)(#{Regexp.escape(replacement)})/m
  else
    content = '\2\3'
    /(#{Regexp.escape(replacement)})(.*)(#{flag})/m
  end
  replace!(regexp, content)
end