From 1549a672a1f17bde6df8a7cf31d4f032564860ee Mon Sep 17 00:00:00 2001 From: shoopea Date: Mon, 6 May 2019 15:33:25 +0800 Subject: [PATCH] test --- workers.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/workers.go b/workers.go index 49e5d73..9f75ef9 100644 --- a/workers.go +++ b/workers.go @@ -78,7 +78,8 @@ func SQLIdentifyMsgWorker(id int, objIds <-chan int64) { log.Printf("SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : Message retrieved (%d)\n%s\n", objId, m.Text) // War reports // r := regexp.MustCompile(`^(?P[.]{1})(?P(\[[A-Z]{3}\]){0,1})(?P(\[[A-Za-z0-9 ]*\]){1}) ⚔:(?P[0-9]+) ?:(?P[0-9]+) Lvl: (?P[0-9]+)(?s:.*)$`) - r := regexp.MustCompile(`^(?s:.*)$`) + // r := regexp.MustCompile(`^(?s:.*)$`) + r := regexp.MustCompile(`^(?P.)(?s:.*)$`) if r.FindStringSubmatch(m.Text) != nil { log.Printf("SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : War report identified (%d)\n", objId) } else {