let's try without the unicrud translation

This commit is contained in:
Ted Unangst 2019-10-06 21:49:04 -04:00
parent df94bdb4ed
commit cad9d2a299
2 changed files with 6 additions and 2 deletions

4
fun.go
View File

@ -67,8 +67,8 @@ func reverbolate(userid int64, honks []*Honk) {
_, h.Oondle = handles(h.Oonker) _, h.Oondle = handles(h.Oonker)
} }
zap := make(map[*Donk]bool) zap := make(map[*Donk]bool)
h.Precis = unpucker(h.Precis) h.Precis = demoji(h.Precis)
h.Noise = unpucker(h.Noise) h.Noise = demoji(h.Noise)
h.Open = "open" h.Open = "open"
if userid == -1 { if userid == -1 {
if h.Precis != "" { if h.Precis != "" {

View File

@ -99,6 +99,10 @@ func unpucker(s string) string {
} }
s = re_alltheshitz.ReplaceAllStringFunc(s, fixer) s = re_alltheshitz.ReplaceAllStringFunc(s, fixer)
return demoji(s)
}
func demoji(s string) string {
s = re_moredumb.ReplaceAllString(s, ".") s = re_moredumb.ReplaceAllString(s, ".")
zw := false zw := false