Gtest
This commit is contained in:
parent
5aaffdc789
commit
88b80007f6
1
msg.go
1
msg.go
@ -472,6 +472,7 @@ func parseSubTypeMessageGListAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWar
|
|||||||
cwm.Msg = m
|
cwm.Msg = m
|
||||||
|
|
||||||
log.Printf("parseSubTypeMessageGListAck : Guild : %s\n", r.ReplaceAllString(m.Text, "${GuildName}"))
|
log.Printf("parseSubTypeMessageGListAck : Guild : %s\n", r.ReplaceAllString(m.Text, "${GuildName}"))
|
||||||
|
log.Printf("parseSubTypeMessageGListAck : Members : %s\n", r.ReplaceAllString(m.Text, "${Members}"))
|
||||||
|
|
||||||
re := regexp.MustCompile(`\n#(?P<Id>[0-9]+) (?P<Class1>[⚒⚗️📦🏹⚔️🛡])(?P<Class2>[⚒⚗️📦🏹⚔️🛡]{0,1})(?P<Level>[0-9]+) \\[(?P<Status>.*)\\] (?P<Name>[a-zA-z0-9 ]+)`)
|
re := regexp.MustCompile(`\n#(?P<Id>[0-9]+) (?P<Class1>[⚒⚗️📦🏹⚔️🛡])(?P<Class2>[⚒⚗️📦🏹⚔️🛡]{0,1})(?P<Level>[0-9]+) \\[(?P<Status>.*)\\] (?P<Name>[a-zA-z0-9 ]+)`)
|
||||||
for _, l := range re.FindAllString(r.ReplaceAllString(m.Text, "${Members}"), -1) {
|
for _, l := range re.FindAllString(r.ReplaceAllString(m.Text, "${Members}"), -1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user