This commit is contained in:
shoopea 2019-05-25 23:42:47 +08:00
parent 667b0e5515
commit 333517dfba

View File

@ -115,14 +115,16 @@ func resetMsgParsingRules() {
`(🎖Attack leaders: ([🐉🦅🐺🦈🦌🥔🌑])([^,]+)(,([🐉🦅🐺🦈🦌🥔🌑])([^,]+)){0,1}(,([🐉🦅🐺🦈🦌🥔🌑])([^,]+)){0,1}(,([🐉🦅🐺🦈🦌🥔🌑])([^,]+)){0,1}){0,1}(\\n){0,1}` +
`(🎖Defense leaders: ([🐉🦅🐺🦈🦌🥔🌑])([^,]+)(,([🐉🦅🐺🦈🦌🥔🌑])([^,]+)){0,1}(,([🐉🦅🐺🦈🦌🥔🌑])([^,]+)){0,1}(,([🐉🦅🐺🦈🦌🥔🌑])([^,]+)){0,1}){0,1}(\\n){0,1})(\\n)*)*` +
`$")
,(5000, ` + strconv.Itoa(objSubTypeMessageUnionWar) + `, "Union war report with trade union", "^(\\x{1F3E0}Trade union news:){0,1}(\\n)*` +
`((([A-Z][a-z]+ [A-Z][a-z]+) was ((easily defended|defended successfully|breached.|easily breached.|closely breached.))( Attackers have pillaged union for ([0-9]+) stock){0,1}:\\n` +
`((.+)(\\n)){0,1}` +
`((.+)(\\n)){0,1}` +
`)(\\n)*)+` +
`(\\x{1F3AA}State of exclusive rights:\\n){0,1}` +
`(?s:.*)` +
`$")
,(5000, ` + strconv.Itoa(objSubTypeMessageUnionWar) + `, "Union war report with trade union", "^(🏠Trade union news:){0,1}(\\n)*` +
`(?<Union>((([A-Z][a-z]+ [A-Z][a-z]+) was ((easily defended|defended successfully|breached.|easily breached.|closely breached.))( Attackers have pillaged union for ([0-9]+) stock){0,1}:\\n` +
`((.Attack+)(\\n)){0,1}` +
`((.Defense+)(\\n)){0,1}` +
`)(\\n)*)+)` +
`(🎪State of exclusive rights:\\n){0,1}` +
`(?<Fair>((([A-Z][a-z]+ [A-Z][a-z]+) ((was protected)|(belongs to [A-Z][a-z]+ [A-Z][a-z]+:)\\n` +
`((.Attack+)(\\n)){0,1}` +
`((.Defense+)(\\n)){0,1}` +
`)(\\n)*)+)(\\n)*$")
;`)
failOnError(err, "resetMsgParsingRules : populate table msg_rules")
}