From c0b1a1a914bae9aff9bf5e20404ba941e2f48741 Mon Sep 17 00:00:00 2001
From: David Taylor <david@taylorhq.com>
Date: Thu, 31 Jan 2019 17:46:39 +0000
Subject: [PATCH] DEV: Do not add `-theme` suffix to theme exports

This could be confusing if the theme name already ended in "theme" or "theme-component"
---
 lib/theme_store/tgz_exporter.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/theme_store/tgz_exporter.rb b/lib/theme_store/tgz_exporter.rb
index 7487e82692a..3e1260e86e8 100644
--- a/lib/theme_store/tgz_exporter.rb
+++ b/lib/theme_store/tgz_exporter.rb
@@ -5,7 +5,7 @@ class ThemeStore::TgzExporter
   def initialize(theme)
     @theme = theme
     @temp_folder = "#{Pathname.new(Dir.tmpdir).realpath}/discourse_theme_#{SecureRandom.hex}"
-    @export_name = "#{@theme.name.downcase.gsub(/[^0-9a-z.\-]/, '-')}-theme"
+    @export_name = @theme.name.downcase.gsub(/[^0-9a-z.\-]/, '-')
     @export_name = "discourse-#{@export_name}" unless @export_name.starts_with?("discourse")
   end