clapping is fucking obnoxious
This commit is contained in:
parent
5fb2e9c0a5
commit
32782d5356
|
@ -42,6 +42,8 @@ var re_alltheshitz = regexp.MustCompile(`([` +
|
|||
bigblokshitz +
|
||||
"][ '\ufe0f]?){3,}")
|
||||
|
||||
var re_moredumb = regexp.MustCompile(`[👏]`)
|
||||
|
||||
// this may not be especially fast
|
||||
func unpucker(s string) string {
|
||||
fixer := func(r string) string {
|
||||
|
@ -80,6 +82,8 @@ func unpucker(s string) string {
|
|||
}
|
||||
s = re_alltheshitz.ReplaceAllStringFunc(s, fixer)
|
||||
|
||||
s = re_moredumb.ReplaceAllString(s, ".")
|
||||
|
||||
zw := false
|
||||
for _, c := range s {
|
||||
if runewidth.RuneWidth(c) == 0 {
|
||||
|
|
Loading…
Reference in New Issue