test
This commit is contained in:
parent
c31b4b1c22
commit
00efb1d528
@ -82,13 +82,7 @@ func SQLIdentifyMsgWorker(id int, objIds <-chan int64) {
|
|||||||
// r := regexp.MustCompile(`^(?P<Castle>.)(?P<Guild>(\[[A-Z]{3}\]){0,1})(?P<User>([A-Za-z0-9 ]*))(?s:.*)$`)
|
// r := regexp.MustCompile(`^(?P<Castle>.)(?P<Guild>(\[[A-Z]{3}\]){0,1})(?P<User>([A-Za-z0-9 ]*))(?s:.*)$`)
|
||||||
// r := regexp.MustCompile(`^(?P<Castle>.)(?P<Guild>(\[[A-Z]{3}\]){0,1})(?P<User>([A-Za-z0-9 ]*)) ⚔:(?P<Attack>[0-9]+)(?s:.*)$`)
|
// r := regexp.MustCompile(`^(?P<Castle>.)(?P<Guild>(\[[A-Z]{3}\]){0,1})(?P<User>([A-Za-z0-9 ]*)) ⚔:(?P<Attack>[0-9]+)(?s:.*)$`)
|
||||||
// r := regexp.MustCompile(`^(?P<Castle>.)(?P<Guild>(\[[A-Z]{3}\]){0,1})(?P<User>([A-Za-z0-9 ]*)) ⚔:(?P<Attack>[0-9]+) .:(?P<Defense>[0-9]+)(?s:.*)$`) // FIXME defense character !
|
// r := regexp.MustCompile(`^(?P<Castle>.)(?P<Guild>(\[[A-Z]{3}\]){0,1})(?P<User>([A-Za-z0-9 ]*)) ⚔:(?P<Attack>[0-9]+) .:(?P<Defense>[0-9]+)(?s:.*)$`) // FIXME defense character !
|
||||||
r := regexp.MustCompile(`^(?P<Castle>.)` +
|
r := regexp.MustCompile(`^(?P<Castle>.)(?P<Guild>(\[[A-Z]{3}\]){0,1})(?P<User>([A-Za-z0-9 ]*)) ⚔:(?P<Attack>[0-9]+) .:(?P<Defense>[0-9]+) Lvl: (?P<Level>[0-9]+)(?s:.*)$`) // FIXME defense character !
|
||||||
`(?P<Guild>(\[[A-Z]{3}\]){0,1})` +
|
|
||||||
`(?P<User>([A-Za-z0-9 ]*))` +
|
|
||||||
` ⚔:(?P<Attack>[0-9]+)` +
|
|
||||||
`.:(?P<Defense>[0-9]+) ` +
|
|
||||||
`Lvl: (?P<Level>[0-9]+)` +
|
|
||||||
`(?s:.*)$`) // FIXME defense character !
|
|
||||||
if r.FindStringSubmatch(m.Text) != nil {
|
if r.FindStringSubmatch(m.Text) != nil {
|
||||||
log.Printf("SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : War report identified (%d)\n", objId)
|
log.Printf("SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : War report identified (%d)\n", objId)
|
||||||
log.Printf("SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : Castle : %s (%d)\n", r.ReplaceAllString(m.Text, "${Castle}"), objId)
|
log.Printf("SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : Castle : %s (%d)\n", r.ReplaceAllString(m.Text, "${Castle}"), objId)
|
||||||
|
Loading…
Reference in New Issue
Block a user