소스 검색

pack name use underscore instead of period

kPherox 4 년 전
부모
커밋
ea834818e1
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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()