all repos — honk @ 39cf765395edf64873c397f6e857dce9503f0300

my fork of honk

also match crazy words with spaces embedded
Ted Unangst tedu@tedunangst.com
Tue, 30 Apr 2019 18:04:18 -0400
commit

39cf765395edf64873c397f6e857dce9503f0300

parent

53b5b13cb1400081db0f75dc0370dd683b8d0369

1 files changed, 6 insertions(+), 2 deletions(-)

jump to
M skulduggery.goskulduggery.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 {