block letters too, and the weird fe0f rune that slips in sometimes.
Ted Unangst tedu@tedunangst.com
Wed, 01 May 2019 18:46:36 -0400
1 files changed,
4 insertions(+),
2 deletions(-)
jump to
M
skulduggery.go
→
skulduggery.go
@@ -29,13 +29,15 @@ var bigitalshitz = "๐จ๐ฉ๐ช๐ซ๐ฌ๐ญ๐ฎ๐ฏ๐ฐ๐ฑ๐ฒ๐ณ๐ด๐ต๐ถ๐ท๐ธ๐น๐บ๐ป๐ผ๐ฝ๐พ๐ฟ๐๐"
var lilitalshitz = "๐๐๐๐ ๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐" var bigbangshitz = "๐ธ๐นโ๐ป๐ผ๐ฝ๐พโ๐๐๐๐๐โ๐โโโ๐๐๐๐๐๐๐โค" var lilbangshitz = "๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐ ๐ก๐ข๐ฃ๐ค๐ฅ๐ฆ๐ง๐จ๐ฉ๐ช๐ซ" +var bigblokshitz = "๐ ฐ๐ ฑ๐ ฒ๐ ณ๐ ด๐ ต๐ ถ๐ ท๐ ธ๐ น๐ บ๐ ป๐ ผ๐ ฝ๐ พ๐ ฟ๐๐๐๐๐๐ ๐๐๐๐" var re_alltheshitz = regexp.MustCompile(`([` + bigboldshitz + lilboldshitz + biggothshitz + lilgothshitz + bigitalshitz + lilitalshitz + bigbangshitz + lilbangshitz + - `] ?){3,}`) + bigblokshitz + + "][ \ufe0f]?){3,}") // this may not be especially fast func unpucker(s string) string {@@ -49,7 +51,7 @@ if c == ' ' {
x[xi] = ' ' continue } - for _, set := range []string{bigboldshitz, biggothshitz, bigitalshitz, bigbangshitz} { + for _, set := range []string{bigboldshitz, biggothshitz, bigitalshitz, bigbangshitz, bigblokshitz} { i := 0 for _, rr := range set { if rr == c {