Browse Source

pack name use underscore instead of period

kPherox 4 years ago
parent
commit
ea834818e1
1 changed files with 2 additions and 1 deletions
  1. 2 1
      masto-emoji-pack.go

+ 2 - 1
masto-emoji-pack.go

@@ -3,6 +3,7 @@ package main
 import (
 	"fmt"
 	"path/filepath"
+	"strings"
 )
 
 type Result struct {
@@ -45,7 +46,7 @@ func saveEmojiList(domain string, opts Options, c chan Result) {
 		return
 	}
 
-	out := filepath.Join(opts.OutputDir, domain)
+	out := filepath.Join(opts.OutputDir, strings.Replace(domain, ".", "_", -1))
 
 	if !opts.Split {
 		p := NewEmojiPack()