From da0839bb6d580587898468d9a37b667b3350d713 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Thu, 26 Sep 2019 18:00:29 -0400 Subject: [PATCH] in honk culture, we're all yellow. (fixes artifacts with clap removal) --- skulduggery.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/skulduggery.go b/skulduggery.go index b890d72..41ecb1f 100644 --- a/skulduggery.go +++ b/skulduggery.go @@ -58,6 +58,7 @@ var re_alltheshitz = regexp.MustCompile(`([` + var allUppers = []string{bigboldshitz, moeboldshitz, biggothshitz, bigwideshitz, moegothshitz, bigitalshitz, moeitalshitz, bigbangshitz, bigblokshitz, evenmoeshitz} var allLowers = []string{lilboldshitz, morboldshitz, lilgothshitz, lilwideshitz, morgothshitz, lilitalshitz, moritalshitz, lilbangshitz, evenmorshitz} +var re_skinTones = regexp.MustCompile("[\U0001F3FB\U0001F3FC\U0001F3FD\U0001F3FE\U0001F3FF]") var re_moredumb = regexp.MustCompile("[\U0001f44f\U0001f6a8\U000026a0]\ufe0f?") // this may not be especially fast @@ -98,6 +99,7 @@ func unpucker(s string) string { } s = re_alltheshitz.ReplaceAllStringFunc(s, fixer) + s = re_skinTones.ReplaceAllString(s, "") s = re_moredumb.ReplaceAllString(s, ".") zw := false