test
This commit is contained in:
parent
66a888bcd7
commit
c31b4b1c22
@ -82,7 +82,13 @@ 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 ]*)) ⚔:(?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]+) Lvl: (?P<Level>[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]+) ` +
|
||||
`Lvl: (?P<Level>[0-9]+)` +
|
||||
`(?s:.*)$`) // FIXME defense character !
|
||||
if r.FindStringSubmatch(m.Text) != nil {
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user