block letters too, and the weird fe0f rune that slips in sometimes.
This commit is contained in:
parent
3f6b42c456
commit
43971e9fb7
|
@ -29,13 +29,15 @@ var bigitalshitz = "𝑨𝑩𝑪𝑫𝑬𝑭𝑮𝑯𝑰𝑱𝑲𝑳𝑴𝑵𝑶
|
||||||
var lilitalshitz = "𝒂𝒃𝒄𝒅𝒆𝒇𝒈𝒉𝒊𝒋𝒌𝒍𝒎𝒏𝒐𝒑𝒒𝒓𝒔𝒕𝒖𝒗𝒘𝒙𝒚𝒛"
|
var lilitalshitz = "𝒂𝒃𝒄𝒅𝒆𝒇𝒈𝒉𝒊𝒋𝒌𝒍𝒎𝒏𝒐𝒑𝒒𝒓𝒔𝒕𝒖𝒗𝒘𝒙𝒚𝒛"
|
||||||
var bigbangshitz = "𝔸𝔹ℂ𝔻𝔼𝔽𝔾ℍ𝕀𝕁𝕂𝕃𝕄ℕ𝕆ℙℚℝ𝕊𝕋𝕌𝕍𝕎𝕏𝕐ℤ"
|
var bigbangshitz = "𝔸𝔹ℂ𝔻𝔼𝔽𝔾ℍ𝕀𝕁𝕂𝕃𝕄ℕ𝕆ℙℚℝ𝕊𝕋𝕌𝕍𝕎𝕏𝕐ℤ"
|
||||||
var lilbangshitz = "𝕒𝕓𝕔𝕕𝕖𝕗𝕘𝕙𝕚𝕛𝕜𝕝𝕞𝕟𝕠𝕡𝕢𝕣𝕤𝕥𝕦𝕧𝕨𝕩𝕪𝕫"
|
var lilbangshitz = "𝕒𝕓𝕔𝕕𝕖𝕗𝕘𝕙𝕚𝕛𝕜𝕝𝕞𝕟𝕠𝕡𝕢𝕣𝕤𝕥𝕦𝕧𝕨𝕩𝕪𝕫"
|
||||||
|
var bigblokshitz = "🅰🅱🅲🅳🅴🅵🅶🅷🅸🅹🅺🅻🅼🅽🅾🅿🆀🆁🆂🆃🆄🆅🆆🆇🆈🆉"
|
||||||
|
|
||||||
var re_alltheshitz = regexp.MustCompile(`([` +
|
var re_alltheshitz = regexp.MustCompile(`([` +
|
||||||
bigboldshitz + lilboldshitz +
|
bigboldshitz + lilboldshitz +
|
||||||
biggothshitz + lilgothshitz +
|
biggothshitz + lilgothshitz +
|
||||||
bigitalshitz + lilitalshitz +
|
bigitalshitz + lilitalshitz +
|
||||||
bigbangshitz + lilbangshitz +
|
bigbangshitz + lilbangshitz +
|
||||||
`] ?){3,}`)
|
bigblokshitz +
|
||||||
|
"][ \ufe0f]?){3,}")
|
||||||
|
|
||||||
// this may not be especially fast
|
// this may not be especially fast
|
||||||
func unpucker(s string) string {
|
func unpucker(s string) string {
|
||||||
|
@ -49,7 +51,7 @@ func unpucker(s string) string {
|
||||||
x[xi] = ' '
|
x[xi] = ' '
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
for _, set := range []string{bigboldshitz, biggothshitz, bigitalshitz, bigbangshitz} {
|
for _, set := range []string{bigboldshitz, biggothshitz, bigitalshitz, bigbangshitz, bigblokshitz} {
|
||||||
i := 0
|
i := 0
|
||||||
for _, rr := range set {
|
for _, rr := range set {
|
||||||
if rr == c {
|
if rr == c {
|
||||||
|
|
Loading…
Reference in New Issue