ah, use the big \U unicode escape.

This commit is contained in:
Ted Unangst 2019-06-13 22:28:06 -04:00
parent d56b3023ed
commit 5586f2a4ec
1 changed files with 1 additions and 2 deletions

View File

@ -679,8 +679,7 @@ func subsub(user *WhatAbout, xid string) {
deliverate(0, user.Name, xid, msg)
}
var onepepper = string([]byte{0xf0, 0x9f, 0x8c, 0xb6})
var re_spicy = regexp.MustCompile("^(" + onepepper + "\ufe0f?){3}")
var re_spicy = regexp.MustCompile("^(\U0001f336\ufe0f?){3}")
func jonkjonk(user *WhatAbout, h *Honk) (junk.Junk, junk.Junk) {
dt := h.Date.Format(time.RFC3339)