also match crazy words with spaces embedded
Ted Unangst tedu@tedunangst.com
Tue, 30 Apr 2019 18:04:18 -0400
1 files changed,
6 insertions(+),
2 deletions(-)
jump to
M
skulduggery.go
→
skulduggery.go
@@ -30,12 +30,12 @@ var lilitalshitz = "ππππ ππππππππππππππππππππππ"
var bigbangshitz = "πΈπΉβπ»πΌπ½πΎβπππππβπβββπππππππβ€" var lilbangshitz = "πππππππππππππππ π‘π’π£π€π₯π¦π§π¨π©πͺπ«" -var re_alltheshitz = regexp.MustCompile(`[` + +var re_alltheshitz = regexp.MustCompile(`([` + bigboldshitz + lilboldshitz + biggothshitz + lilgothshitz + bigitalshitz + lilitalshitz + bigbangshitz + lilbangshitz + - `]{2,}`) + `] ?){3,}`) // this may not be especially fast func unpucker(s string) string {@@ -45,6 +45,10 @@ xi := 0
loop1: for _, c := range r { xi++ + if c == ' ' { + x[xi] = ' ' + continue + } for _, set := range []string{bigboldshitz, biggothshitz, bigitalshitz, bigbangshitz} { i := 0 for _, rr := range set {